Skip to content

Commit d5121ff

Browse files
Wei Yongjunjgunthorpe
authored andcommitted
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: bdcf26b ("rdma/siw: network and RDMA core interface") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Yongjun <[email protected]> Reviewed-by: Bernard Metzler <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 5f9e832 commit d5121ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/infiniband/sw/siw/siw_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ static __init int siw_init_module(void)
612612

613613
if (!siw_create_tx_threads()) {
614614
pr_info("siw: Could not start any TX thread\n");
615+
rv = -ENOMEM;
615616
goto out_error;
616617
}
617618
/*

0 commit comments

Comments
 (0)