RDMA/ocrdma: Fix error return code in ocrdma_set_create_qp_rq_cmd()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 23 Jun 2013 01:07:19 +0000 (09:07 +0800)
committerRoland Dreier <roland@purestorage.com>
Mon, 24 Jun 2013 20:50:45 +0000 (13:50 -0700)
commitc94e15c5cb4d02579321382871eb87e17d10858e
tree2074fa96d9e65071eee6fd619cb72b862d92f757
parent9884bcdca30ae9f29a0d6af4a4577826b00c5d94
RDMA/ocrdma: Fix error return code in ocrdma_set_create_qp_rq_cmd()

Fix to return -ENOMEM in the alloc dma coherent error 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/ocrdma/ocrdma_hw.c