git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
IB/ehca: Release mutex in error path of alloc_small_queue_page()
[pandora-kernel.git]
/
drivers
/
infiniband
/
hw
/
ehca
/
ipz_pt_fn.c
diff --git
a/drivers/infiniband/hw/ehca/ipz_pt_fn.c
b/drivers/infiniband/hw/ehca/ipz_pt_fn.c
index
29bd476
..
c3a3284
100644
(file)
--- a/
drivers/infiniband/hw/ehca/ipz_pt_fn.c
+++ b/
drivers/infiniband/hw/ehca/ipz_pt_fn.c
@@
-158,10
+158,12
@@
static int alloc_small_queue_page(struct ipz_queue *queue, struct ehca_pd *pd)
queue->queue_pages[0] = (void *)(page->page | (bit << (order + 9)));
queue->small_page = page;
queue->queue_pages[0] = (void *)(page->page | (bit << (order + 9)));
queue->small_page = page;
+ queue->offset = bit << (order + 9);
return 1;
out:
ehca_err(pd->ib_pd.device, "failed to allocate small queue page");
return 1;
out:
ehca_err(pd->ib_pd.device, "failed to allocate small queue page");
+ mutex_unlock(&pd->lock);
return 0;
}
return 0;
}