Commit af63fde5 authored by Marek Lindner's avatar Marek Lindner Committed by Antonio Quartulli

batman-adv: call unregister_netdev() to have it handle the locking for us

Reported-by: default avatarSven Eckelmann <sven@narfation.org>
Signed-off-by: default avatarMarek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: default avatarAntonio Quartulli <antonio@meshcoding.com>
parent 1a321b0d
...@@ -652,10 +652,7 @@ static void batadv_softif_destroy_finish(struct work_struct *work) ...@@ -652,10 +652,7 @@ static void batadv_softif_destroy_finish(struct work_struct *work)
} }
batadv_sysfs_del_meshif(soft_iface); batadv_sysfs_del_meshif(soft_iface);
unregister_netdev(soft_iface);
rtnl_lock();
unregister_netdevice(soft_iface);
rtnl_unlock();
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment