diff options
Diffstat (limited to 'drivers/net/ethernet/marvell/pxa168_eth.c')
-rw-r--r-- | drivers/net/ethernet/marvell/pxa168_eth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/marvell/pxa168_eth.c b/drivers/net/ethernet/marvell/pxa168_eth.c index aa037ca314e7..c7f2fa60fe6f 100644 --- a/drivers/net/ethernet/marvell/pxa168_eth.c +++ b/drivers/net/ethernet/marvell/pxa168_eth.c | |||
@@ -1443,10 +1443,10 @@ static int pxa168_set_settings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
1443 | static void pxa168_get_drvinfo(struct net_device *dev, | 1443 | static void pxa168_get_drvinfo(struct net_device *dev, |
1444 | struct ethtool_drvinfo *info) | 1444 | struct ethtool_drvinfo *info) |
1445 | { | 1445 | { |
1446 | strncpy(info->driver, DRIVER_NAME, 32); | 1446 | strlcpy(info->driver, DRIVER_NAME, sizeof(info->driver)); |
1447 | strncpy(info->version, DRIVER_VERSION, 32); | 1447 | strlcpy(info->version, DRIVER_VERSION, sizeof(info->version)); |
1448 | strncpy(info->fw_version, "N/A", 32); | 1448 | strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); |
1449 | strncpy(info->bus_info, "N/A", 32); | 1449 | strlcpy(info->bus_info, "N/A", sizeof(info->bus_info)); |
1450 | } | 1450 | } |
1451 | 1451 | ||
1452 | static const struct ethtool_ops pxa168_ethtool_ops = { | 1452 | static const struct ethtool_ops pxa168_ethtool_ops = { |