We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbedad7 commit 85fd895Copy full SHA for 85fd895
net/core/net-sysfs.c
@@ -212,7 +212,7 @@ static ssize_t speed_show(struct device *dev,
212
if (!rtnl_trylock())
213
return restart_syscall();
214
215
- if (netif_running(netdev)) {
+ if (netif_running(netdev) && netif_device_present(netdev)) {
216
struct ethtool_link_ksettings cmd;
217
218
if (!__ethtool_get_link_ksettings(netdev, &cmd))
0 commit comments