Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32800
b: refs/heads/master
c: ec924b4
h: refs/heads/master
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Roland Dreier committed Jul 23, 2006
1 parent 069385c commit 8359e9d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: abb5a5cc6bba1516403146c5b79036fe843beb70
refs/heads/master: ec924b4726e3df000d3ac7ae10cb8ef1adcd60ca
10 changes: 8 additions & 2 deletions trunk/drivers/infiniband/core/uverbs_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ ssize_t ib_uverbs_create_ah(struct ib_uverbs_file *file,
ah = ib_create_ah(pd, &attr);
if (IS_ERR(ah)) {
ret = PTR_ERR(ah);
goto err;
goto err_put;
}

ah->uobject = uobj;
Expand Down Expand Up @@ -1811,6 +1811,9 @@ ssize_t ib_uverbs_create_ah(struct ib_uverbs_file *file,
err_destroy:
ib_destroy_ah(ah);

err_put:
put_pd_read(pd);

err:
put_uobj_write(uobj);
return ret;
Expand Down Expand Up @@ -1984,7 +1987,7 @@ ssize_t ib_uverbs_create_srq(struct ib_uverbs_file *file,
srq = pd->device->create_srq(pd, &attr, &udata);
if (IS_ERR(srq)) {
ret = PTR_ERR(srq);
goto err;
goto err_put;
}

srq->device = pd->device;
Expand Down Expand Up @@ -2029,6 +2032,9 @@ ssize_t ib_uverbs_create_srq(struct ib_uverbs_file *file,
err_destroy:
ib_destroy_srq(srq);

err_put:
put_pd_read(pd);

err:
put_uobj_write(&obj->uobject);
return ret;
Expand Down

0 comments on commit 8359e9d

Please sign in to comment.