aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2019-07-18 09:27:10 +0000
committerJason Gunthorpe <jgg@mellanox.com>2019-07-22 14:28:17 -0300
commitd5121ffebc38a16b2419b664e466a2f3e5c7b457 (patch)
treecd016197e8081ad48cb97f7067c0374af85ab764 /drivers/infiniband
parentLinus 5.3-rc1 (diff)
downloadlinux-dev-d5121ffebc38a16b2419b664e466a2f3e5c7b457.tar.xz
linux-dev-d5121ffebc38a16b2419b664e466a2f3e5c7b457.zip
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: bdcf26bf9b3a ("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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/sw/siw/siw_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/sw/siw/siw_main.c b/drivers/infiniband/sw/siw/siw_main.c
index f55c4e80aea4..d0f140daf659 100644
--- a/drivers/infiniband/sw/siw/siw_main.c
+++ b/drivers/infiniband/sw/siw/siw_main.c
@@ -612,6 +612,7 @@ static __init int siw_init_module(void)
if (!siw_create_tx_threads()) {
pr_info("siw: Could not start any TX thread\n");
+ rv = -ENOMEM;
goto out_error;
}
/*