aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd/amd8111e.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/amd/amd8111e.c')
-rw-r--r--drivers/net/ethernet/amd/amd8111e.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ethernet/amd/amd8111e.c b/drivers/net/ethernet/amd/amd8111e.c
index a9745f4ddbf..a388118ee8e 100644
--- a/drivers/net/ethernet/amd/amd8111e.c
+++ b/drivers/net/ethernet/amd/amd8111e.c
@@ -1412,10 +1412,11 @@ static void amd8111e_get_drvinfo(struct net_device* dev, struct ethtool_drvinfo
1412{ 1412{
1413 struct amd8111e_priv *lp = netdev_priv(dev); 1413 struct amd8111e_priv *lp = netdev_priv(dev);
1414 struct pci_dev *pci_dev = lp->pci_dev; 1414 struct pci_dev *pci_dev = lp->pci_dev;
1415 strcpy (info->driver, MODULE_NAME); 1415 strlcpy(info->driver, MODULE_NAME, sizeof(info->driver));
1416 strcpy (info->version, MODULE_VERS); 1416 strlcpy(info->version, MODULE_VERS, sizeof(info->version));
1417 sprintf(info->fw_version,"%u",chip_version); 1417 snprintf(info->fw_version, sizeof(info->fw_version),
1418 strcpy (info->bus_info, pci_name(pci_dev)); 1418 "%u", chip_version);
1419 strlcpy(info->bus_info, pci_name(pci_dev), sizeof(info->bus_info));
1419} 1420}
1420 1421
1421static int amd8111e_get_regs_len(struct net_device *dev) 1422static int amd8111e_get_regs_len(struct net_device *dev)