Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6018
b: refs/heads/master
c: e1bcfca
h: refs/heads/master
v: v3
  • Loading branch information
Roland Dreier authored and Linus Torvalds committed Aug 27, 2005
1 parent 6e0393c commit a30f923
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 1c9cf6f9861f8d27303ee2531b3b7686269c71ce
refs/heads/master: e1bcfcaa0b3bec2a67b22c565a0bf508ea90db1d
3 changes: 2 additions & 1 deletion trunk/drivers/infiniband/core/uverbs_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,14 @@ static int ib_dealloc_ucontext(struct ib_ucontext *context)

list_for_each_entry_safe(uobj, tmp, &context->mr_list, list) {
struct ib_mr *mr = idr_find(&ib_uverbs_mr_idr, uobj->id);
struct ib_device *mrdev = mr->device;
struct ib_umem_object *memobj;

idr_remove(&ib_uverbs_mr_idr, uobj->id);
ib_dereg_mr(mr);

memobj = container_of(uobj, struct ib_umem_object, uobject);
ib_umem_release_on_close(mr->device, &memobj->umem);
ib_umem_release_on_close(mrdev, &memobj->umem);

list_del(&uobj->list);
kfree(memobj);
Expand Down

0 comments on commit a30f923

Please sign in to comment.