Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10707
b: refs/heads/master
c: 305a7e8
h: refs/heads/master
i:
  10705: 1569a6d
  10703: 58a5efc
v: v3
  • Loading branch information
Roland Dreier committed Oct 17, 2005
1 parent f8ece7d commit 448be64
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: 5b6810e048435de508ef66aebd6b78db13d651b8
refs/heads/master: 305a7e87055dde2466a855c24ef51a606915d149
8 changes: 6 additions & 2 deletions trunk/drivers/infiniband/core/uverbs_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,10 @@ void ib_uverbs_comp_handler(struct ib_cq *cq, void *cq_context)
}

entry = kmalloc(sizeof *entry, GFP_ATOMIC);
if (!entry)
if (!entry) {
spin_unlock_irqrestore(&file->lock, flags);
return;
}

uobj = container_of(cq->uobject, struct ib_ucq_object, uobject);

Expand Down Expand Up @@ -343,8 +345,10 @@ static void ib_uverbs_async_handler(struct ib_uverbs_file *file,
}

entry = kmalloc(sizeof *entry, GFP_ATOMIC);
if (!entry)
if (!entry) {
spin_unlock_irqrestore(&file->async_file->lock, flags);
return;
}

entry->desc.async.element = element;
entry->desc.async.event_type = event;
Expand Down

0 comments on commit 448be64

Please sign in to comment.