]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit20571d8894d1ee5a181e34e8d07ed8472acd30c4
treea5c3dc1258b3ae81aee1476c2d8f4b0b2d06aa12
parentacaf8276823302983d681c2cedaaf01918406935
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