Konstantin Khlebnikov 56e0ef527b drivers/net: caif: fix wrong rtnl_is_locked() usage
rtnl_is_locked() doesn't check who holds this lock, it just tells that it's
locked right now. if caif::ldisc_close really can be called under rtrnl_lock
then it should release net device in other context because there is no way
to grab rtnl_lock without deadlock.

This patch adds work which releases these devices. Also this patch fixes calling
dev_close/unregister_netdevice without rtnl_lock from caif_ser_exit().

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Dmitry Tarnyagin <dmitry.tarnyagin@lockless.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-07-09 12:55:48 -07:00
..
2013-06-27 13:42:16 -04:00
2013-04-26 22:30:25 +02:00
2013-05-09 09:59:16 -07:00
2013-05-06 14:59:13 -07:00
2013-06-22 09:44:45 -10:00
2013-06-13 10:13:29 -07:00
2013-06-14 19:15:36 -10:00
2013-06-14 13:45:11 +02:00
2013-05-15 10:58:22 -07:00
2013-05-07 14:04:56 -07:00
2013-05-07 14:02:00 -07:00
2013-06-25 16:10:14 -07:00
2013-06-22 09:00:28 -10:00
2013-06-05 08:54:16 -06:00
2013-05-04 12:31:18 -07:00
2013-05-04 12:31:18 -07:00