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 3fc0fd7 commit a7b9ab0Copy full SHA for a7b9ab0
net/core/net-sysfs.c
@@ -198,7 +198,7 @@ static ssize_t speed_show(struct device *dev,
198
if (!rtnl_trylock())
199
return restart_syscall();
200
201
- if (netif_running(netdev)) {
+ if (netif_running(netdev) && netif_device_present(netdev)) {
202
struct ethtool_link_ksettings cmd;
203
204
if (!__ethtool_get_link_ksettings(netdev, &cmd))
0 commit comments