IB/mthca: Fix error return code in __mthca_init_one()
Jason Gunthorpe
AppliedQuoted 8 lines · Wei Yongjun
Fix to return a negative error code from the
mthca_cmd_init()error handling case instead of 0, as done elsewhere in this function.Fixes 80fd8238734c ("[PATCH] IB/mthca: Encapsulate command interface init")Signed-off-by Wei Yongjun <[email protected]>--- drivers/infiniband/hw/mthca/mthca_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to for-next
Thanks,
Jason