Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72291
b: refs/heads/master
c: cbfb50e
h: refs/heads/master
i:
  72289: a449e70
  72287: 3acc838
v: v3
  • Loading branch information
Roland Dreier committed Oct 20, 2007
1 parent 27ec228 commit 83c3ebf
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 839041329fd3410e07d614f81e75bb43367d8f89
refs/heads/master: cbfb50e6e2e9c580848c0f51d37c24cdfb1cb704
8 changes: 6 additions & 2 deletions trunk/drivers/infiniband/core/uverbs_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,12 @@ static struct ib_uobject *__idr_get_uobj(struct idr *idr, int id,

spin_lock(&ib_uverbs_idr_lock);
uobj = idr_find(idr, id);
if (uobj)
kref_get(&uobj->ref);
if (uobj) {
if (uobj->context == context)
kref_get(&uobj->ref);
else
uobj = NULL;
}
spin_unlock(&ib_uverbs_idr_lock);

return uobj;
Expand Down

0 comments on commit 83c3ebf

Please sign in to comment.