Re: [PATCH v1] drivers/acpi/x86: check return null pointer from acpi_evaluate_dsm()

From: Mika Westerberg
Date: Mon Aug 29 2022 - 01:14:15 EST


Hi,

On Sun, Aug 28, 2022 at 01:51:20PM -0700, Li Zhong wrote:
> From: lily <floridsleeves@xxxxxxxxx>
>
> Check return value from acpi_evaluate_dsm(). Only do ACPI_FREE() when
> out_obj is not NULL pointers.

ACPI_FREE() expands to kfree() and that allows NULL pointers so I don't
think this patch is necessary.