]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPICA: Fix memory leak if acpi_ps_get_next_namepath() fails
authorArmin Wolf <W_Armin@gmx.de>
Wed, 3 Apr 2024 18:50:11 +0000 (20:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:24 +0000 (15:11 +0200)
commitbcf5c930670712794015dcf138fddada2a073a0a
tree5578559f4e0c544fb6ad9e58f863654db0b9b550
parent92e5661b7d0727ab912b76625a88b33fdb9b609a
ACPICA: Fix memory leak if acpi_ps_get_next_namepath() fails

[ Upstream commit 5accb265f7a1b23e52b0ec42313d1e12895552f4 ]

ACPICA commit 2802af722bbde7bf1a7ac68df68e179e2555d361

If acpi_ps_get_next_namepath() fails, the previously allocated
union acpi_parse_object needs to be freed before returning the
status code.

The issue was first being reported on the Linux ACPI mailing list:

Link: https://lore.kernel.org/linux-acpi/56f94776-484f-48c0-8855-dba8e6a7793b@yandex.ru/T/
Link: https://github.com/acpica/acpica/commit/2802af72
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/acpica/psargs.c