diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 53ea262ecafd0c1e537a7e63f313745fb7ba53bb..fbddf966206b61573b94f0f0e433249570a9cba5 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -213,7 +213,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))