]> git.baikalelectronics.ru Git - kernel.git/commit
r6040: Do a Proper deinit at errorpath and also when driver unloads (calling r6040_re...
authorDevendra Naga <devendra.aaru@gmail.com>
Tue, 29 May 2012 13:43:34 +0000 (13:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 May 2012 02:31:08 +0000 (22:31 -0400)
commit3c39ae2bcd7f6b9e920a3b960938a141c3918457
treea5c3dc1258b3ae81aee1476c2d8f4b0b2d06aa12
parentb0b010675cc68d462251765ec082e33006c38b6f
r6040: Do a Proper deinit at errorpath and also when driver unloads (calling r6040_remove_one)

so if mdiobus_alloc fails, the errorpath doesnt do a netif_napi_del and also
doesn't set the priv data of the driver to NULL.

at the driver unload stage the driver doesn't remove the NAPI context, and
doesnt' set the priv data to NULL, and also doesn't call the pci_iounmap.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rdc/r6040.c