myri10ge: fix rmmod crash
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 23 Mar 2011 02:44:30 +0000 (02:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Mar 2011 19:31:39 +0000 (12:31 -0700)
commitcda6587c21a887254c8ed4b58da8fcc4040ab557
treef92a7640fedc4684f37e91116cbb66d38b9c9b52
parent61b85bf6060bfd205c218f5aeb71c19a24abb0cd
myri10ge: fix rmmod crash

Rmmod myri10ge crash at free_netdev() -> netif_napi_del(), because napi
structures are already deallocated. To fix call netif_napi_del() before
kfree() at myri10ge_free_slices().

Cc: stable@kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/myri10ge/myri10ge.c