projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fedaf4f
)
IB/ehca: Fix error return code in ehca_create_slab_caches()
author
Wei Yongjun
<
[email protected]
>
Wed, 19 Jun 2013 02:40:09 +0000
(10:40 +0800)
committer
Roland Dreier
<
[email protected]
>
Thu, 20 Jun 2013 11:52:04 +0000
(
04:52
-0700)
Fix to return -ENOMEM in the kmem_cache_create() error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <
[email protected]
>
Signed-off-by: Roland Dreier <
[email protected]
>
drivers/infiniband/hw/ehca/ehca_main.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/ehca/ehca_main.c
b/drivers/infiniband/hw/ehca/ehca_main.c
index f8a62918a88d58ef8609899ce06629175c0775bd..8f43093edace0a2106535f5e2b44bce1bc940881 100644
(file)
--- a/
drivers/infiniband/hw/ehca/ehca_main.c
+++ b/
drivers/infiniband/hw/ehca/ehca_main.c
@@
-211,6
+211,7
@@
static int ehca_create_slab_caches(void)
if (!ctblk_cache) {
ehca_gen_err("Cannot create ctblk SLAB cache.");
ehca_cleanup_small_qp_cache();
+ ret = -ENOMEM;
goto create_slab_caches6;
}
#endif