kernel-leave@openeuler.org
---- Replied Message ----
FromZheng Zengkai<zhengzengkai@huawei.com>
Date10/15/2021 17:59
Tokernel<kernel@openeuler.org>
Ccxiexiuqi<xiexiuqi@huawei.com>,
zzk20210127<zzk20210127@163.com>
Subject[PATCH openEuler-5.10 001/133] Revert "ACPICA: Fix memory leak caused by _CID repair function"
From: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>

stable inclusion
from stable-5.10.58
commit b917f123b50d05242ef9bfee6e4646ec36b8425d
bugzilla: 176984 https://gitee.com/openeuler/kernel/issues/I4E2P4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b917f123b50d05242ef9bfee6e4646ec36b8425d

--------------------------------

commit 6511a8b5b7a65037340cd8ee91a377811effbc83 upstream.

Revert commit c27bac0314131 ("ACPICA: Fix memory leak caused by _CID
repair function") which is reported to cause a boot issue on Acer
Swift 3 (SF314-51).

Reported-by: Adrien Precigout <dev@asdrip.fr>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Chen Jun <chenjun102@huawei.com>
Acked-by: Weilong Chen <chenweilong@huawei.com>
Signed-off-by: Chen Jun <chenjun102@huawei.com>
---
drivers/acpi/acpica/nsrepair2.c | 7 -------
1 file changed, 7 deletions(-)

diff --git a/drivers/acpi/acpica/nsrepair2.c b/drivers/acpi/acpica/nsrepair2.c
index 8768594c79e5..125143c41bb8 100644
--- a/drivers/acpi/acpica/nsrepair2.c
+++ b/drivers/acpi/acpica/nsrepair2.c
@@ -375,13 +375,6 @@ acpi_ns_repair_CID(struct acpi_evaluate_info *info,

           (*element_ptr)->common.reference_count =
               original_ref_count;
-
-            /*
-             * The original_element holds a reference from the package object
-             * that represents _HID. Since a new element was created by _HID,
-             * remove the reference from the _CID package.
-             */
-            acpi_ut_remove_reference(original_element);
       }

       element_ptr++;
--
2.20.1
_______________________________________________
Kernel mailing list -- kernel@openeuler.org
To unsubscribe send an email to kernel-leave@openeuler.org