[PATCH 0/2] platform/chrome: check ACPI companions before use

From: Jiale Yao

Date: Wed Oct 28 2026 - 01:14:18 EST


Two Chrome platform drivers assume their firmware-matched devices always
carry an ACPI companion. Driver override can bind either driver to a device
without one, leading probe to dereference a NULL companion.

Reject missing companions before passing them to ACPI resource and notify
handler APIs. Each change is independent and preserves the normal
firmware-matched probe path.

Jiale Yao (2):
platform/chrome: cros_ec_uart: check ACPI companion before use
platform/chrome: cros_usbpd_notify: check ACPI companion

drivers/platform/chrome/cros_ec_uart.c | 8 ++++++--
drivers/platform/chrome/cros_usbpd_notify.c | 2 ++
2 files changed, 8 insertions(+), 2 deletions(-)

--
2.34.1