net/mlx5e: Disable async events before unregister_netdev()
authorAchiad Shochat <achiad@mellanox.com>
Tue, 4 Aug 2015 11:05:45 +0000 (14:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Aug 2015 05:00:58 +0000 (22:00 -0700)
commit1cefa326ff26dddb2c4a7f43802ce0ba5c35a2ba
treef647618ea1ffd0d6a1eddf2028ef5e89df2b63e7
parent40ab6a6ebeebbcfc313233f5aa0d55930734f529
net/mlx5e: Disable async events before unregister_netdev()

It does not make sense to allow events while the netdev is
unregistered.

Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c