Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17073
b: refs/heads/master
c: b4ca1a3
h: refs/heads/master
i:
  17071: 68593e2
v: v3
  • Loading branch information
Jack Morgenstein authored and Roland Dreier committed Jan 7, 2006
1 parent 90e6644 commit 2614918
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4de144bf721e46e7ccc8fed45b20a640cc364904
refs/heads/master: b4ca1a3f8ca24033d7b7ef595faef97d9f8b2326
7 changes: 7 additions & 0 deletions trunk/drivers/infiniband/core/uverbs_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ ssize_t ib_uverbs_reg_mr(struct ib_uverbs_file *file,

err_unreg:
ib_dereg_mr(mr);
atomic_dec(&pd->usecnt);

err_up:
up(&ib_uverbs_idr_mutex);
Expand Down Expand Up @@ -935,6 +936,11 @@ ssize_t ib_uverbs_create_qp(struct ib_uverbs_file *file,

err_destroy:
ib_destroy_qp(qp);
atomic_dec(&pd->usecnt);
atomic_dec(&attr.send_cq->usecnt);
atomic_dec(&attr.recv_cq->usecnt);
if (attr.srq)
atomic_dec(&attr.srq->usecnt);

err_up:
up(&ib_uverbs_idr_mutex);
Expand Down Expand Up @@ -1729,6 +1735,7 @@ ssize_t ib_uverbs_create_srq(struct ib_uverbs_file *file,

err_destroy:
ib_destroy_srq(srq);
atomic_dec(&pd->usecnt);

err_up:
up(&ib_uverbs_idr_mutex);
Expand Down

0 comments on commit 2614918

Please sign in to comment.