forked from Minki/linux
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> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
This commit is contained in:
parent
1a321b0deb
commit
af63fde503
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user