batman-adv: call unregister_netdev() to have it handle the locking for us
authorMarek Lindner <mareklindner@neomailbox.ch>
Sat, 8 Feb 2014 15:28:18 +0000 (23:28 +0800)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 22 Mar 2014 07:50:26 +0000 (08:50 +0100)
Reported-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/soft-interface.c

index db3e46783c6b1dd0a8786437a017ad72d0cf6d90..633e9d67d9258e8be8d6f686ac1c9e98b0cd24b4 100644 (file)
@@ -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);
 }
 
 /**
This page took 0.025731 seconds and 5 git commands to generate.