caif-hsi: fix possible deadlock in cfhsi_exit_module()
authorTaehee Yoo <ap420073@gmail.com>
Mon, 15 Jul 2019 05:10:17 +0000 (14:10 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jul 2019 18:58:56 +0000 (11:58 -0700)
commitfdd258d49e88a9e0b49ef04a506a796f1c768a8e
tree31ca49f36ebe8f5902ccf9dff707559847240864
parenta5b647007e9d794956dbed9339a3354a9fc4d5c3
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: c41254006377 ("caif-hsi: Add rtnl support")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_hsi.c