net/mlx4_en: Fix panic during reboot
[cascardo/linux.git] / drivers / net / ethernet / mellanox / mlx4 / en_netdev.c
index e25c11d..314f54c 100644 (file)
@@ -2201,6 +2201,7 @@ void mlx4_en_destroy_netdev(struct net_device *dev)
 
        if (!shutdown)
                free_netdev(dev);
+       dev->ethtool_ops = NULL;
 }
 
 static int mlx4_en_change_mtu(struct net_device *dev, int new_mtu)