mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 10:12:16 +09:00
caif-hsi: fix possible deadlock in cfhsi_exit_module()
[ Upstream commitfdd258d49e] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9dd7343d3c
commit
08aa823d2d
@@ -1462,7 +1462,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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user