Re: [PATCH] usb: typec: ucsi: Add ACPI_COMPANION() NULL check in ucsi_acpi_probe
From: Greg KH
Date: Tue Aug 11 2026 - 01:55:30 EST
On Tue, Aug 11, 2026 at 11:10:47AM +0800, Xueqin Luo wrote:
> Add NULL check for ACPI_COMPANION() in ucsi_acpi_probe() to prevent
> NULL pointer dereference when driver_override matches a device without
> ACPI companion.
How can that happen? What changed to cause that to happen?
>
> Fixes: 1f3546ff3f0a ("usb: typec: ucsi: acpi: Check the _DEP dependencies")
> Signed-off-by: Xueqin Luo <luoxueqin@xxxxxxxxxx>
No cc: stable?
thanks,
greg k-h