RDMA/cxgb4: Fix error return code in create_qp()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 15 Mar 2013 09:42:12 +0000 (09:42 +0000)
committerRoland Dreier <roland@purestorage.com>
Sat, 23 Mar 2013 01:00:41 +0000 (18:00 -0700)
commit55e57a780a10c9fd734603ec4b32644791ef5b05
tree6d40c0fd559ca987e786e3c60d854af265bbb9c4
parenta937536b868b8369b98967929045f1df54234323
RDMA/cxgb4: Fix error return code in create_qp()

Fix to return a negative error code from the error handling case
instead of 0, as returned elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/qp.c