aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/packetengines/hamachi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/packetengines/hamachi.c')
-rw-r--r--drivers/net/ethernet/packetengines/hamachi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/packetengines/hamachi.c b/drivers/net/ethernet/packetengines/hamachi.c
index bf829ee30077..cac33e5f9bc2 100644
--- a/drivers/net/ethernet/packetengines/hamachi.c
+++ b/drivers/net/ethernet/packetengines/hamachi.c
@@ -1808,9 +1808,10 @@ static int check_if_running(struct net_device *dev)
1808static void hamachi_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 1808static void hamachi_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
1809{ 1809{
1810 struct hamachi_private *np = netdev_priv(dev); 1810 struct hamachi_private *np = netdev_priv(dev);
1811 strcpy(info->driver, DRV_NAME); 1811
1812 strcpy(info->version, DRV_VERSION); 1812 strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
1813 strcpy(info->bus_info, pci_name(np->pci_dev)); 1813 strlcpy(info->version, DRV_VERSION, sizeof(info->version));
1814 strlcpy(info->bus_info, pci_name(np->pci_dev), sizeof(info->bus_info));
1814} 1815}
1815 1816
1816static int hamachi_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) 1817static int hamachi_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd)