mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
Revert "ACPICA: Fix memory leak caused by _CID repair function"
commit6511a8b5b7upstream. Revert commitc27bac0314("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>
This commit is contained in:
parent
1cd6e30b83
commit
b917f123b5
|
|
@ -375,13 +375,6 @@ acpi_ns_repair_CID(struct acpi_evaluate_info *info,
|
||||||
|
|
||||||
(*element_ptr)->common.reference_count =
|
(*element_ptr)->common.reference_count =
|
||||||
original_ref_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++;
|
element_ptr++;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user