aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/via
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/via')
-rw-r--r--drivers/net/ethernet/via/via-rhine.c6
-rw-r--r--drivers/net/ethernet/via/via-velocity.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c
index f34dd99fe579..5587ecdf32e3 100644
--- a/drivers/net/ethernet/via/via-rhine.c
+++ b/drivers/net/ethernet/via/via-rhine.c
@@ -2009,9 +2009,9 @@ static void netdev_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *i
2009{ 2009{
2010 struct rhine_private *rp = netdev_priv(dev); 2010 struct rhine_private *rp = netdev_priv(dev);
2011 2011
2012 strcpy(info->driver, DRV_NAME); 2012 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
2013 strcpy(info->version, DRV_VERSION); 2013 strlcpy(info->version, DRV_VERSION, sizeof(info->version));
2014 strcpy(info->bus_info, pci_name(rp->pdev)); 2014 strlcpy(info->bus_info, pci_name(rp->pdev), sizeof(info->bus_info));
2015} 2015}
2016 2016
2017static int netdev_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) 2017static int netdev_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
diff --git a/drivers/net/ethernet/via/via-velocity.c b/drivers/net/ethernet/via/via-velocity.c
index 4535d7cc848e..59bb5fd56afe 100644
--- a/drivers/net/ethernet/via/via-velocity.c
+++ b/drivers/net/ethernet/via/via-velocity.c
@@ -3270,9 +3270,9 @@ static int velocity_set_settings(struct net_device *dev,
3270static void velocity_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 3270static void velocity_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
3271{ 3271{
3272 struct velocity_info *vptr = netdev_priv(dev); 3272 struct velocity_info *vptr = netdev_priv(dev);
3273 strcpy(info->driver, VELOCITY_NAME); 3273 strlcpy(info->driver, VELOCITY_NAME, sizeof(info->driver));
3274 strcpy(info->version, VELOCITY_VERSION); 3274 strlcpy(info->version, VELOCITY_VERSION, sizeof(info->version));
3275 strcpy(info->bus_info, pci_name(vptr->pdev)); 3275 strlcpy(info->bus_info, pci_name(vptr->pdev), sizeof(info->bus_info));
3276} 3276}
3277 3277
3278static void velocity_ethtool_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) 3278static void velocity_ethtool_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol)