From: Marek Lindner Date: Sat, 8 Feb 2014 15:28:18 +0000 (+0800) Subject: batman-adv: call unregister_netdev() to have it handle the locking for us X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=af63fde5037963b03889dd22833df502532390c0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git batman-adv: call unregister_netdev() to have it handle the locking for us Reported-by: Sven Eckelmann Signed-off-by: Marek Lindner Signed-off-by: Antonio Quartulli --- diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index db3e46783c6b..633e9d67d925 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/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); } /**