Commit f91d7181 authored by Tariq Toukan's avatar Tariq Toukan Committed by David S. Miller

Revert "net/mlx4_en: Fix panic during reboot"

This reverts commit 9d2afba0.

The original issue would possibly exist if an external module
tried calling our "ethtool_ops" without checking if it still
exists.

The right way of solving it is by simply doing the check in
the caller side.
Currently, no action is required as there's no such use case.
Signed-off-by: default avatarTariq Toukan <tariqt@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fb56be83
...@@ -2202,7 +2202,6 @@ void mlx4_en_destroy_netdev(struct net_device *dev) ...@@ -2202,7 +2202,6 @@ void mlx4_en_destroy_netdev(struct net_device *dev)
if (!shutdown) if (!shutdown)
free_netdev(dev); free_netdev(dev);
dev->ethtool_ops = NULL;
} }
static int mlx4_en_change_mtu(struct net_device *dev, int new_mtu) static int mlx4_en_change_mtu(struct net_device *dev, int new_mtu)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment