diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index e5dc04cb55992d903ece9a0663ce396fbdf4a8d2..7a11b2d90975dc634a5760ba60fa78dba40aeb42 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -203,7 +203,7 @@ static ssize_t speed_show(struct device *dev, if (!rtnl_trylock()) return restart_syscall(); - if (netif_running(netdev)) { + if (netif_running(netdev) && netif_device_present(netdev)) { struct ethtool_link_ksettings cmd; if (!__ethtool_get_link_ksettings(netdev, &cmd))