]> 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)
commit919f00afb58e4db99c5dc53a3c1345c3f7b0c097
treea5c3dc1258b3ae81aee1476c2d8f4b0b2d06aa12
parent45d89f317765a9fbf17557b90647f00eec55ff70
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