Commit f9c892d1 authored by Wei Yongjun's avatar Wei Yongjun Committed by Lee Jones
Browse files

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



[ Upstream commit 39f24956 ]

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: 80fd8238 ("[PATCH] IB/mthca: Encapsulate command interface init")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Change-Id: I1b062d8bd0261bcdf116aaef13bcbe5edf88d7c5
parent 577c3254
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment