RDMA/hns: Fix inaccurate error label name in init instance

This patch fixes inaccurate error label name in init instance.

Fixes: 70f9252158 ("RDMA/hns: Use the reserved loopback QPs to free MR before destroying MPT")
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20230804012711.808069-4-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
Junxian Huang 2023-08-04 09:27:10 +08:00 committed by Leon Romanovsky
parent 706efac447
commit c9c0bd3c17
1 changed files with 4 additions and 4 deletions

View File

@ -6658,14 +6658,14 @@ static int __hns_roce_hw_v2_init_instance(struct hnae3_handle *handle)
ret = hns_roce_init(hr_dev); ret = hns_roce_init(hr_dev);
if (ret) { if (ret) {
dev_err(hr_dev->dev, "RoCE Engine init failed!\n"); dev_err(hr_dev->dev, "RoCE Engine init failed!\n");
goto error_failed_cfg; goto error_failed_roce_init;
} }
if (hr_dev->pci_dev->revision == PCI_REVISION_ID_HIP08) { if (hr_dev->pci_dev->revision == PCI_REVISION_ID_HIP08) {
ret = free_mr_init(hr_dev); ret = free_mr_init(hr_dev);
if (ret) { if (ret) {
dev_err(hr_dev->dev, "failed to init free mr!\n"); dev_err(hr_dev->dev, "failed to init free mr!\n");
goto error_failed_roce_init; goto error_failed_free_mr_init;
} }
} }
@ -6673,10 +6673,10 @@ static int __hns_roce_hw_v2_init_instance(struct hnae3_handle *handle)
return 0; return 0;
error_failed_roce_init: error_failed_free_mr_init:
hns_roce_exit(hr_dev); hns_roce_exit(hr_dev);
error_failed_cfg: error_failed_roce_init:
kfree(hr_dev->priv); kfree(hr_dev->priv);
error_failed_kzalloc: error_failed_kzalloc: