Skip to content

Commit 4d285dc

Browse files
TaeheeYoogregkh
authored andcommitted
caif-hsi: fix possible deadlock in cfhsi_exit_module()
[ Upstream commit fdd258d ] cfhsi_exit_module() calls unregister_netdev() under rtnl_lock(). but unregister_netdev() internally calls rtnl_lock(). So deadlock would occur. Fixes: c412540 ("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>
1 parent a4af244 commit 4d285dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/caif/caif_hsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ static void __exit cfhsi_exit_module(void)
14671467
rtnl_lock();
14681468
list_for_each_safe(list_node, n, &cfhsi_list) {
14691469
cfhsi = list_entry(list_node, struct cfhsi, list);
1470-
unregister_netdev(cfhsi->ndev);
1470+
unregister_netdevice(cfhsi->ndev);
14711471
}
14721472
rtnl_unlock();
14731473
}

0 commit comments

Comments
 (0)