mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
caif-hsi: fix possible deadlock in cfhsi_exit_module()
cfhsi_exit_module() calls unregister_netdev() under rtnl_lock().
but unregister_netdev() internally calls rtnl_lock().
So deadlock would occur.
Fixes: c412540063
("caif-hsi: Add rtnl support")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a5b647007e
commit
fdd258d49e
1 changed files with 1 additions and 1 deletions
|
@ -1455,7 +1455,7 @@ static void __exit cfhsi_exit_module(void)
|
|||
rtnl_lock();
|
||||
list_for_each_safe(list_node, n, &cfhsi_list) {
|
||||
cfhsi = list_entry(list_node, struct cfhsi, list);
|
||||
unregister_netdev(cfhsi->ndev);
|
||||
unregister_netdevice(cfhsi->ndev);
|
||||
}
|
||||
rtnl_unlock();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue