Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
commit 548c938bfef2dfad63d999fc9005f1d387e3d15a Author: Marek Lindner mareklindner@neomailbox.ch Date: Sat Feb 8 23:28:18 2014 +0800
batman-adv: call unregister_netdev() to have it handle the locking for us
Reported-by: Sven Eckelmann sven@narfation.org Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
548c938bfef2dfad63d999fc9005f1d387e3d15a soft-interface.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/soft-interface.c b/soft-interface.c index db3e467..633e9d6 100644 --- a/soft-interface.c +++ b/soft-interface.c @@ -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); }
/**