From: Sven Eckelmann Date: Sat, 22 May 2010 15:48:45 +0000 (+0200) Subject: Staging: batman-adv: Call unregister_netdev on failures to get rtnl lock X-Git-Tag: v2.6.35-rc2~14^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20c8a44b7cd5e56b62898a87f620b3a7269eb898;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed