diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index c976fd132c3b..5da964bd8762 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -198,7 +198,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_cmd cmd; if (!__ethtool_get_settings(netdev, &cmd)) ret = sprintf(buf, fmt_dec, ethtool_cmd_speed(&cmd));