diff options
author | Roland Dreier <rolandd@cisco.com> | 2005-09-27 15:07:25 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-10-17 15:20:25 -0700 |
commit | eb9d3cd5ce2828fbb99ed7270089ea152c8f64b3 (patch) | |
tree | 2d0de42bc6c7777c66ee76d5817312bcfd161718 /drivers/crypto | |
parent | 6b73597e7062118c0549c2702bfb7d273518c906 (diff) |
[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/crypto')
0 files changed, 0 insertions, 0 deletions