diff options
| author | Zilin Guan <zilin@seu.edu.cn> | 2026-01-14 15:17:36 +0300 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-01-15 20:17:47 +0300 |
| commit | 05390d31d77ebd4cbd0bff54cbdcfd4283c9a93f (patch) | |
| tree | 92302a4cebe66e80d706cfd98284463b0314623f /include/linux/parser.h | |
| parent | d6f6bae3ecba665e18a6b6cfcd575f8e9f46b204 (diff) | |
| download | linux-05390d31d77ebd4cbd0bff54cbdcfd4283c9a93f.tar.xz | |
ACPICA: ACPICA: replace ACPI_FREE() with acpi_ut_delete_object_desc()
acpi_ut_create_internal_object() may allocate memory from a slab cache
via kmem_cache_zalloc(), but the code currently frees it with ACPI_FREE(),
which calls kfree().
This mismatch prevents the object from being released properly and may
lead to memory leaks or other issues.
Fix this by replacing ACPI_FREE() with acpi_ut_delete_object_desc(),
which matches the allocation method used for internal objects.
Link: https://github.com/acpica/acpica/commit/a1c55dfea194
Signed-off-by: Zilin Guan <zilin@seu.edu.cn>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/4710853.LvFx2qVVIh@rafael.j.wysocki
Diffstat (limited to 'include/linux/parser.h')
0 files changed, 0 insertions, 0 deletions
