RDMA/hns: Fix hns_roce_table_get return value
authorChengchang Tang <tangchengchang@huawei.com>
Tue, 23 May 2023 12:16:40 +0000 (20:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:21:25 +0000 (16:21 +0200)
commit766e0b6f4c9649f126e59c06f100b8581d0773b8
tree91c15c3fccc7717d4fe98a7aab23d297cd846099
parentb99395ab605fb0570d1e62c9459425ac6fc58d46
RDMA/hns: Fix hns_roce_table_get return value

[ Upstream commit cf5b608fb0e369c473a8303cad6ddb386505e5b8 ]

The return value of set_hem has been fixed to ENODEV, which will lead a
diagnostic information missing.

Fixes: 9a4435375cd1 ("IB/hns: Add driver files for hns RoCE driver")
Link: https://lore.kernel.org/r/20230523121641.3132102-3-huangjunxian6@hisilicon.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hem.c