Re: [PATCH v2 0/5] platform/x86: Check ACPI_COMPANION() or ACPI_HANDLE() against NULL
From: Andy Shevchenko
Date: Tue May 12 2026 - 14:15:19 EST
On Tue, May 12, 2026 at 05:10:35PM +0200, Rafael J. Wysocki wrote:
> Hi All,
>
> This series replaces
>
> https://lore.kernel.org/linux-acpi/4731840.LvFx2qVVIh@rafael.j.wysocki/
>
> and as a whole it makes exactly the same code changes.
>
> Every platform driver can be forced to match a device that doesn't match
> its list of device IDs because of device_match_driver_override(), so
> platform drivers that rely on the existence of a device's ACPI companion
> object need to verify its presence.
>
> Accordingly, add requisite ACPI_COMPANION() or ACPI_HANDLE() checks
> against NULL to 5 platform/x86 drivers where they are missing.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
to the whole series.
--
With Best Regards,
Andy Shevchenko