batman-adv: call unregister_netdev() to have it handle the locking for us
Commit Message
Reported-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
---
soft-interface.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
Comments
On Saturday 08 February 2014 23:28:18 Marek Lindner wrote:
> Reported-by: Sven Eckelmann <sven@narfation.org>
> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
> ---
> soft-interface.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
Applied in revision 548c938.
Thanks,
Marek
@@ -652,10 +652,7 @@ static void batadv_softif_destroy_finish(struct work_struct *work)
}
batadv_sysfs_del_meshif(soft_iface);
-
- rtnl_lock();
- unregister_netdevice(soft_iface);
- rtnl_unlock();
+ unregister_netdev(soft_iface);
}
/**