diff options
Diffstat (limited to 'net/8021q/vlan_dev.c')
-rw-r--r-- | net/8021q/vlan_dev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c index 4a6d31a082b9..09f9108d4688 100644 --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_dev.c | |||
@@ -640,9 +640,9 @@ static int vlan_ethtool_get_settings(struct net_device *dev, | |||
640 | static void vlan_ethtool_get_drvinfo(struct net_device *dev, | 640 | static void vlan_ethtool_get_drvinfo(struct net_device *dev, |
641 | struct ethtool_drvinfo *info) | 641 | struct ethtool_drvinfo *info) |
642 | { | 642 | { |
643 | strcpy(info->driver, vlan_fullname); | 643 | strlcpy(info->driver, vlan_fullname, sizeof(info->driver)); |
644 | strcpy(info->version, vlan_version); | 644 | strlcpy(info->version, vlan_version, sizeof(info->version)); |
645 | strcpy(info->fw_version, "N/A"); | 645 | strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); |
646 | } | 646 | } |
647 | 647 | ||
648 | static struct rtnl_link_stats64 *vlan_dev_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats) | 648 | static struct rtnl_link_stats64 *vlan_dev_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats) |