Commit d5121ffe authored by Wei Yongjun's avatar Wei Yongjun Committed by Jason Gunthorpe

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: bdcf26bf ("rdma/siw: network and RDMA core interface")
Link: https://lore.kernel.org/r/20190718092710.85709-1-weiyongjun1@huawei.comSigned-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarBernard Metzler <bmt@zurich.ibm.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 5f9e832c
...@@ -612,6 +612,7 @@ static __init int siw_init_module(void) ...@@ -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;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment