r8169: call netif_napi_del at errpaths and at driver unload
authorDevendra Naga <[email protected]>
Thu, 31 May 2012 01:51:20 +0000 (01:51 +0000)
committerDavid S. Miller <[email protected]>
Fri, 1 Jun 2012 22:44:32 +0000 (18:44 -0400)
commitad1be8d345416a794dea39761a374032aa471a76
tree42b651f2274bf08ec0b611532e29f54bb3e70ebc
parentfff3269907897ee91406ece125795f53e722677e
r8169: call netif_napi_del at errpaths and at driver unload

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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/realtek/r8169.c