Re: [PATCH 2/2] platform/chrome: cros_usbpd_notify: check ACPI companion

From: Tzung-Bi Shih

Date: Sun Nov 01 2026 - 22:45:24 EST


On Wed, Oct 28, 2026 at 01:12:00PM +0800, Jiale Yao wrote:
> The ACPI probe installs a notification handler through the device ACPI
> companion without checking that the companion exists. A force-bound
> platform device can therefore cause a NULL pointer dereference.
>
> Return -ENODEV before allocating probe resources when the companion is
> missing.
>
> [...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next

[2/2] platform/chrome: cros_usbpd_notify: check ACPI companion
commit: 87f74d2b224ae6484628500136a75677766ed52c

Thanks!