From: Simon Wunderlich Date: Mon, 7 Nov 2011 12:57:48 +0000 (+0100) Subject: batman-adv: use unregister_netdevice() when softif_create fails X-Git-Tag: v3.3-rc1~182^2~250^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06ba7ce223045369cb5459f95e6c27e708938cf4;p=pandora-kernel.git batman-adv: use unregister_netdevice() when softif_create fails When entering softif_create(), the rtnl lock has already been acquired by store_mesh_iface(). (store_mesh_iface() -> hardif_enable_interface() -> softif_create) In case of an error, we should therefore call unregister_netdevice() instead of unregister_netdev(). unregister_netdev() tries to acquire the rtnl lock itself and deadlocks in this situation. unregister_netdevice() assumes that the rtnl lock is already been held. Signed-off-by: Simon Wunderlich Signed-off-by: Sven Eckelmann --- Reading git-diff-tree failed