Re: [PATCH v1][linux-next] ACPI: fan: Use __free() to simplify AML error handling
From: Andy Shevchenko
Date: Thu Sep 17 2026 - 02:48:32 EST
On Wed, Sep 16, 2026 at 09:42:54PM +0200, Rafael J. Wysocki wrote:
> From: "Rafael J. Wysocki" <rafael.j.wysocki@xxxxxxxxx>
>
> Introduce acpi_object_free for freeing union acpi_object objects
> allocated by AML and use it for simplifying AML error handling in
> the ACPI fan driver.
>
> While at it, update the driver to use consistent error values across
> all function using the union acpi_object data type.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> ---
>
> Applies on top of
>
> https://lore.kernel.org/linux-acpi/1965933.tdWV9SEqCh@rafael.j.wysocki/
>
> which is in linux-next now.
>
> ---
> drivers/acpi/fan_core.c | 80 ++++++++++++++++++------------------------------
> include/linux/acpi.h | 2 +
> 2 files changed, 32 insertions(+), 50 deletions(-)
Statistics says for itself, nice cleanup!
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
--
With Best Regards,
Andy Shevchenko