diff options
Diffstat (limited to 'drivers/net/ethernet/dlink')
-rw-r--r-- | drivers/net/ethernet/dlink/sundance.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/dlink/sundance.c b/drivers/net/ethernet/dlink/sundance.c index dcd7f7a71ad4..28a3a9b50b8b 100644 --- a/drivers/net/ethernet/dlink/sundance.c +++ b/drivers/net/ethernet/dlink/sundance.c | |||
@@ -1634,9 +1634,9 @@ static int check_if_running(struct net_device *dev) | |||
1634 | static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) | 1634 | static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) |
1635 | { | 1635 | { |
1636 | struct netdev_private *np = netdev_priv(dev); | 1636 | struct netdev_private *np = netdev_priv(dev); |
1637 | strcpy(info->driver, DRV_NAME); | 1637 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
1638 | strcpy(info->version, DRV_VERSION); | 1638 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
1639 | strcpy(info->bus_info, pci_name(np->pci_dev)); | 1639 | strlcpy(info->bus_info, pci_name(np->pci_dev), sizeof(info->bus_info)); |
1640 | } | 1640 | } |
1641 | 1641 | ||
1642 | static int get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) | 1642 | static int get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) |