On Monday, November 07, 2011 20:57:48 Simon Wunderlich wrote:
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.
Applied in revision c103efd.
Thanks, Marek