Skip to content

Commit

Permalink
batman-adv: call unregister_netdev() to have it handle the locking fo…
Browse files Browse the repository at this point in the history
…r us

Reported-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
  • Loading branch information
Marek Lindner authored and Antonio Quartulli committed Mar 22, 2014
1 parent 1a321b0 commit af63fde
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions net/batman-adv/soft-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit af63fde

Please sign in to comment.