]> git.karo-electronics.de Git - karo-tx-linux.git/commit
myri10ge: fix rmmod crash
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 23 Mar 2011 02:44:30 +0000 (02:44 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Apr 2011 23:53:18 +0000 (16:53 -0700)
commited05cbe227791f00352725d9057bb2de895ceb01
tree41dff6956f5dab77a1b0f79387da91bd477c717c
parent518014080d07601facfde5abadf9972f2c2c10cc
myri10ge: fix rmmod crash

commit cda6587c21a887254c8ed4b58da8fcc4040ab557 upstream.

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().

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/myri10ge/myri10ge.c