]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
Staging: batman-adv: Call unregister_netdev on failures to get rtnl lock
authorSven Eckelmann <sven.eckelmann@gmx.de>
Sat, 22 May 2010 15:48:45 +0000 (17:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Jun 2010 20:38:55 +0000 (13:38 -0700)
commit20c8a44b7cd5e56b62898a87f620b3a7269eb898
treee1c23699bb1d2d9036ae199cee09044aa2a95df5
parent5f411a90ee163801434775264b4f9932f1de9e4c
Staging: batman-adv: Call unregister_netdev on failures to get rtnl lock

We must call unregister_netdev when we couldn't initialise the
batman-adv module and the soft_device was registered. There are two
version of the function which we can use:
 * unregister_netdevice - removes device
 * unregister_netdev - takes rtnl semaphore and remove device

We don't hold the semaphore in an error situation. So we must use
unregister_netdev.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/main.c