aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/adi/bfin_mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/adi/bfin_mac.c')
-rw-r--r--drivers/net/ethernet/adi/bfin_mac.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c
index 8c3c9cfbf864..c7a83f6f2382 100644
--- a/drivers/net/ethernet/adi/bfin_mac.c
+++ b/drivers/net/ethernet/adi/bfin_mac.c
@@ -498,10 +498,10 @@ bfin_mac_ethtool_setsettings(struct net_device *dev, struct ethtool_cmd *cmd)
498static void bfin_mac_ethtool_getdrvinfo(struct net_device *dev, 498static void bfin_mac_ethtool_getdrvinfo(struct net_device *dev,
499 struct ethtool_drvinfo *info) 499 struct ethtool_drvinfo *info)
500{ 500{
501 strcpy(info->driver, KBUILD_MODNAME); 501 strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver));
502 strcpy(info->version, DRV_VERSION); 502 strlcpy(info->version, DRV_VERSION, sizeof(info->version));
503 strcpy(info->fw_version, "N/A"); 503 strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
504 strcpy(info->bus_info, dev_name(&dev->dev)); 504 strlcpy(info->bus_info, dev_name(&dev->dev), sizeof(info->bus_info));
505} 505}
506 506
507static void bfin_mac_ethtool_getwol(struct net_device *dev, 507static void bfin_mac_ethtool_getwol(struct net_device *dev,