From: Konstantin Khlebnikov Date: Mon, 8 Jul 2013 07:23:04 +0000 (+0400) Subject: drivers/net: caif: fix wrong rtnl_is_locked() usage X-Git-Tag: v3.11-rc1~64^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56e0ef527b184b3de2d7f88c6190812b2b2ac6bf;p=pandora-kernel.git 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 Cc: Dmitry Tarnyagin Signed-off-by: David S. Miller --- Reading git-diff-tree failed