[PATCH v2 00/16] platform/x86: Check ACPI_COMPANION() against NULL during probe

From: Rafael J. Wysocki

Date: Tue May 12 2026 - 11:05:00 EST


Hi All,

This series replaces

https://lore.kernel.org/linux-acpi/5990022.DvuYhMxLoT@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, requisite ACPI_COMPANION() or ACPI_HANDLE() checks against NULL
are added to multiple platform/x86 drivers that have been converted to platform
drivers from ACPI drivers recently.

Thanks!