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 8c023c3 commit d15c9f6Copy full SHA for d15c9f6
net/core/net-sysfs.c
@@ -213,7 +213,7 @@ static ssize_t speed_show(struct device *dev,
213
if (!rtnl_trylock())
214
return restart_syscall();
215
216
- if (netif_running(netdev)) {
+ if (netif_running(netdev) && netif_device_present(netdev)) {
217
struct ethtool_link_ksettings cmd;
218
219
if (!__ethtool_get_link_ksettings(netdev, &cmd))
0 commit comments