]> git.karo-electronics.de Git - karo-tx-linux.git/commit
r8169: call netif_napi_del at errpaths and at driver unload
authorDevendra Naga <devendra.aaru@gmail.com>
Fri, 5 Oct 2012 21:29:21 +0000 (23:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:28:14 +0000 (05:28 +0900)
commitf074e600bf3cd644c3bdbcbc238dce53952d34cb
tree772c5334c1dfcf7e5054e527fa79159895e6fe36
parentc90334077ffa833ecf89f1645d21f0b9d5d51553
r8169: call netif_napi_del at errpaths and at driver unload

commit ad1be8d345416a794dea39761a374032aa471a76 upstream.

When register_netdev fails, the init'ed NAPIs by netif_napi_add must be
deleted with netif_napi_del, and also when driver unloads, it should
delete the NAPI before unregistering netdevice using unregister_netdev.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/r8169.c