]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mthca: Fix error return code in __mthca_init_one()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 29 Sep 2018 03:55:16 +0000 (03:55 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Oct 2018 22:02:10 +0000 (16:02 -0600)
commita4798a998b23a7c21554943631aee92fa27d83a6
tree590adedc3de02f3430864ca69a8bcdc0d78413bd
parentff5a49ce7e912c85db49a27a363e6988f239d3cb
IB/mthca: Fix error return code in __mthca_init_one()

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: 21574663c6ad ("[PATCH] IB/mthca: Encapsulate command interface init")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mthca/mthca_main.c