summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKonstantin Khlebnikov2013-07-08 09:23:04 +0200
committerDavid S. Miller2013-07-09 21:55:48 +0200
commit56e0ef527b184b3de2d7f88c6190812b2b2ac6bf (patch)
tree3d9bc5ce1b6086554982703f99bc6a0bb9ce05e1 /lib
parentdrivers/net: enic: release rtnl_lock on error-path (diff)
downloadkernel-qcow2-linux-56e0ef527b184b3de2d7f88c6190812b2b2ac6bf.tar.gz
kernel-qcow2-linux-56e0ef527b184b3de2d7f88c6190812b2b2ac6bf.tar.xz
kernel-qcow2-linux-56e0ef527b184b3de2d7f88c6190812b2b2ac6bf.zip
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions