]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/siw: Fix error return code in siw_init_module()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 18 Jul 2019 09:27:10 +0000 (09:27 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 22 Jul 2019 17:28:17 +0000 (14:28 -0300)
commita705de3d446c8221cea80461e67d29879bbf1a0a
treecd016197e8081ad48cb97f7067c0374af85ab764
parent8ae2f793d21f67d4ab95029bb6873efffa36907b
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: f8c4999b094d ("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>
drivers/infiniband/sw/siw/siw_main.c