Re: [PATCH 08/33] ACPI: Define acpi_put_table cleanup handler and acpi_get_table_ret() helper
From: Fenghua Yu
Date: Wed Nov 12 2025 - 15:39:38 EST
On 11/7/25 04:34, Ben Horgan wrote:
Define a cleanup helper for use with __free to release the acpi table when
the pointer goes out of scope. Also, introduce the helper
acpi_get_table_ret() to simplify a commonly used pattern involving
acpi_get_table().
These are first used in a subsequent commit.
Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
Reviewed-by: Fenghua Yu <fenghuay@xxxxxxxxxx>
Tested-by: Fenghua Yu <fenghuay@xxxxxxxxxx>
Thanks.
-Fenghua