[B.A.T.M.A.N.] [PATCH] batman-adv: Call unregister_netdev on failures to get rtnl lock

Marek Lindner lindner_marek at yahoo.de
Fri May 21 12:56:58 CEST 2010

On Wednesday 19 May 2010 19:43:48 Sven Eckelmann wrote:
> 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 a error case. So we must use
> unregister_netdev

Applied in revision 1665.


More information about the B.A.T.M.A.N mailing list