]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
ethtool: fix drvinfo strings set in drivers
[mirror_ubuntu-artful-kernel.git] / drivers / net / ethernet / stmicro / stmmac / stmmac_ethtool.c
index 1372ce210b58b60aa32325b08a8da2d93b5abb6e..d1ac39c1b05d2894ceaee0ed41aeb49f03b88a04 100644 (file)
@@ -210,8 +210,7 @@ static void stmmac_ethtool_getdrvinfo(struct net_device *dev,
                strlcpy(info->driver, MAC100_ETHTOOL_NAME,
                        sizeof(info->driver));
 
-       strcpy(info->version, DRV_MODULE_VERSION);
-       info->fw_version[0] = '\0';
+       strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
 }
 
 static int stmmac_ethtool_getsettings(struct net_device *dev,