]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1973c547bb3a02240f75060ddfe0dd0665dee5c5
treeaccdb41bc62c0c60a209dad677fc04e4f1ddd132
parent2ed2fa4fc50ce5a773ef28125f08a53c2184ac90
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