From 3aaf8bf6432efe0ee009642fc764817a71ab7bad Mon Sep 17 00:00:00 2001 From: Junxian Huang Date: Mon, 10 Nov 2025 14:57:46 +0800 Subject: [PATCH] Revert "RDMA/hns: Fix mismatch exception rollback" driver inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IDBC6I ---------------------------------------------------------------------- Due to differences between the mainline and OpenEuler code, crudely reverting the mainline patch here would result in a memory leak in the exception handling branch. Therefore, it is necessary to first revert the patch on the OpenEuler side. This reverts commit 9c72576734dfcc9927c0539a1d332a9b185b5bdf. Signed-off-by: Junxian Huang Signed-off-by: Donghua Huang --- drivers/infiniband/hw/hns/hns_roce_hem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hem.c b/drivers/infiniband/hw/hns/hns_roce_hem.c index a8dccba39927..5b5272f8298e 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hem.c +++ b/drivers/infiniband/hw/hns/hns_roce_hem.c @@ -277,7 +277,7 @@ static struct hns_roce_hem *hns_roce_alloc_hem(struct hns_roce_dev *hr_dev, return hem; fail: - kfree(hem); + hns_roce_free_hem(hr_dev, hem); return NULL; } -- Gitee