diff options
Diffstat (limited to 'drivers/net/ethernet/atheros/atlx')
-rw-r--r-- | drivers/net/ethernet/atheros/atlx/atl2.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/ethernet/atheros/atlx/atl2.c b/drivers/net/ethernet/atheros/atlx/atl2.c index 1feae5928a4b..db3f43046d32 100644 --- a/drivers/net/ethernet/atheros/atlx/atl2.c +++ b/drivers/net/ethernet/atheros/atlx/atl2.c | |||
@@ -2049,10 +2049,12 @@ static void atl2_get_drvinfo(struct net_device *netdev, | |||
2049 | { | 2049 | { |
2050 | struct atl2_adapter *adapter = netdev_priv(netdev); | 2050 | struct atl2_adapter *adapter = netdev_priv(netdev); |
2051 | 2051 | ||
2052 | strncpy(drvinfo->driver, atl2_driver_name, 32); | 2052 | strlcpy(drvinfo->driver, atl2_driver_name, sizeof(drvinfo->driver)); |
2053 | strncpy(drvinfo->version, atl2_driver_version, 32); | 2053 | strlcpy(drvinfo->version, atl2_driver_version, |
2054 | strncpy(drvinfo->fw_version, "L2", 32); | 2054 | sizeof(drvinfo->version)); |
2055 | strncpy(drvinfo->bus_info, pci_name(adapter->pdev), 32); | 2055 | strlcpy(drvinfo->fw_version, "L2", sizeof(drvinfo->fw_version)); |
2056 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), | ||
2057 | sizeof(drvinfo->bus_info)); | ||
2056 | drvinfo->n_stats = 0; | 2058 | drvinfo->n_stats = 0; |
2057 | drvinfo->testinfo_len = 0; | 2059 | drvinfo->testinfo_len = 0; |
2058 | drvinfo->regdump_len = atl2_get_regs_len(netdev); | 2060 | drvinfo->regdump_len = atl2_get_regs_len(netdev); |