diff options
Diffstat (limited to 'drivers/net/ethernet/aeroflex/greth.c')
-rw-r--r-- | drivers/net/ethernet/aeroflex/greth.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ethernet/aeroflex/greth.c b/drivers/net/ethernet/aeroflex/greth.c index aa53115bb38b..480662ba5227 100644 --- a/drivers/net/ethernet/aeroflex/greth.c +++ b/drivers/net/ethernet/aeroflex/greth.c | |||
@@ -1127,10 +1127,11 @@ static void greth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *in | |||
1127 | { | 1127 | { |
1128 | struct greth_private *greth = netdev_priv(dev); | 1128 | struct greth_private *greth = netdev_priv(dev); |
1129 | 1129 | ||
1130 | strncpy(info->driver, dev_driver_string(greth->dev), 32); | 1130 | strlcpy(info->driver, dev_driver_string(greth->dev), |
1131 | strncpy(info->version, "revision: 1.0", 32); | 1131 | sizeof(info->driver)); |
1132 | strncpy(info->bus_info, greth->dev->bus->name, 32); | 1132 | strlcpy(info->version, "revision: 1.0", sizeof(info->version)); |
1133 | strncpy(info->fw_version, "N/A", 32); | 1133 | strlcpy(info->bus_info, greth->dev->bus->name, sizeof(info->bus_info)); |
1134 | strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); | ||
1134 | info->eedump_len = 0; | 1135 | info->eedump_len = 0; |
1135 | info->regdump_len = sizeof(struct greth_regs); | 1136 | info->regdump_len = sizeof(struct greth_regs); |
1136 | } | 1137 | } |