IB/ehca: Fix error return code in ehca_create_slab_caches()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 19 Jun 2013 02:40:09 +0000 (10:40 +0800)
committerRoland Dreier <roland@purestorage.com>
Thu, 20 Jun 2013 11:52:04 +0000 (04:52 -0700)
commitf29fa1cf340e21085672ccfeb6d66f292208567e
tree45f6984b8541cdfacc9793450ef69e1dc680b09a
parentfedaf4ffc224a194e2d13a3ec2abe5df0bc94258
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>
drivers/infiniband/hw/ehca/ehca_main.c