Skip to contentSkip to conversation

IB/mthca: Fix error return code in __mthca_init_one()

PATCH Jason Gunthorpe 1 participant 1 message Oct 3, 2018 Kernel janitors

lore
Share & tools
lore

Jason Gunthorpe

author Applied
#0 lore raw
Quoted 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")
---
 drivers/infiniband/hw/mthca/mthca_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied to for-next

Thanks,
Jason