aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/fujitsu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/fujitsu')
-rw-r--r--drivers/net/ethernet/fujitsu/fmvj18x_cs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c
index 15416752c13e..ee84b472cee6 100644
--- a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c
+++ b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c
@@ -1058,9 +1058,10 @@ static void fjn_rx(struct net_device *dev)
1058static void netdev_get_drvinfo(struct net_device *dev, 1058static void netdev_get_drvinfo(struct net_device *dev,
1059 struct ethtool_drvinfo *info) 1059 struct ethtool_drvinfo *info)
1060{ 1060{
1061 strcpy(info->driver, DRV_NAME); 1061 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
1062 strcpy(info->version, DRV_VERSION); 1062 strlcpy(info->version, DRV_VERSION, sizeof(info->version));
1063 sprintf(info->bus_info, "PCMCIA 0x%lx", dev->base_addr); 1063 snprintf(info->bus_info, sizeof(info->bus_info),
1064 "PCMCIA 0x%lx", dev->base_addr);
1064} 1065}
1065 1066
1066static const struct ethtool_ops netdev_ethtool_ops = { 1067static const struct ethtool_ops netdev_ethtool_ops = {