RDMA/siw: Fix error return code in siw_init_module()

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

Fixes: bdcf26bf9b ("rdma/siw: network and RDMA core interface")
Link: https://lore.kernel.org/r/20190718092710.85709-1-weiyongjun1@huawei.com
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
Wei Yongjun 2019-07-18 09:27:10 +00:00 committed by Jason Gunthorpe
parent 5f9e832c13
commit d5121ffebc

View File

@ -612,6 +612,7 @@ static __init int siw_init_module(void)
if (!siw_create_tx_threads()) { if (!siw_create_tx_threads()) {
pr_info("siw: Could not start any TX thread\n"); pr_info("siw: Could not start any TX thread\n");
rv = -ENOMEM;
goto out_error; goto out_error;
} }
/* /*