IB/uverbs: Fix unlocking in error paths
authorMichael S. Tsirkin <mst@mellanox.co.il>
Mon, 17 Jul 2006 15:20:51 +0000 (18:20 +0300)
committerRoland Dreier <rolandd@cisco.com>
Sun, 23 Jul 2006 22:16:03 +0000 (15:16 -0700)
commitec924b4726e3df000d3ac7ae10cb8ef1adcd60ca
treeaccdb41bc62c0c60a209dad677fc04e4f1ddd132
parentabb5a5cc6bba1516403146c5b79036fe843beb70
IB/uverbs: Fix unlocking in error paths

ib_uverbs_create_ah() and ib_uverbs_create_srq() did not release the
PD's read lock in their error paths, which lead to deadlock when
destroying the PD.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/uverbs_cmd.c