summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mthca/mthca_provider.c
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-09-27 22:07:25 (GMT)
committerRoland Dreier <rolandd@cisco.com>2005-10-17 22:20:25 (GMT)
commiteb9d3cd5ce2828fbb99ed7270089ea152c8f64b3 (patch)
tree2d0de42bc6c7777c66ee76d5817312bcfd161718 /drivers/infiniband/hw/mthca/mthca_provider.c
parent6b73597e7062118c0549c2702bfb7d273518c906 (diff)
downloadlinux-eb9d3cd5ce2828fbb99ed7270089ea152c8f64b3.tar.xz
[IB] uverbs: Fix up resource creation error paths
By waiting to add resources to our lists until after the last operation that can fail, we don't have to remove them from their lists in the error path. Also, we should hold the idr mutex until we know whether resource creation has succeed or failed, to avoid someone finding a resource in our table before we're ready. Loosely based on work by Robert Walsh <rjwalsh@pathscale.com>. Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_provider.c')
0 files changed, 0 insertions, 0 deletions