diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-06-18 22:40:09 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-06-20 07:52:04 -0400 |
commit | f29fa1cf340e21085672ccfeb6d66f292208567e (patch) | |
tree | 45f6984b8541cdfacc9793450ef69e1dc680b09a /drivers/infiniband/hw/ehca/ehca_main.c | |
parent | fedaf4ffc224a194e2d13a3ec2abe5df0bc94258 (diff) |
IB/ehca: Fix error return code in ehca_create_slab_caches()
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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/ehca/ehca_main.c')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c index f8a62918a88d..8f43093edace 100644 --- 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) | |||
211 | if (!ctblk_cache) { | 211 | if (!ctblk_cache) { |
212 | ehca_gen_err("Cannot create ctblk SLAB cache."); | 212 | ehca_gen_err("Cannot create ctblk SLAB cache."); |
213 | ehca_cleanup_small_qp_cache(); | 213 | ehca_cleanup_small_qp_cache(); |
214 | ret = -ENOMEM; | ||
214 | goto create_slab_caches6; | 215 | goto create_slab_caches6; |
215 | } | 216 | } |
216 | #endif | 217 | #endif |