Re: [PATCH v1] platform/x86: Add ACPI_COMPANION() checks against NULL to probe
From: Rafael J. Wysocki
Date: Tue May 12 2026 - 06:29:36 EST
On Tue, May 12, 2026 at 11:56 AM Ilpo Järvinen
<ilpo.jarvinen@xxxxxxxxxxxxxxx> wrote:
>
> On Mon, 11 May 2026, Rafael J. Wysocki wrote:
>
> > From: "Rafael J. Wysocki" <rafael.j.wysocki@xxxxxxxxx>
> >
> > 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 multiple platform/x86 drivers where they are missing.
> >
> > Cc: stable@xxxxxxxxxxxxxxx
> > Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
>
> Don't these fixes need fixes tags?
Ideally.
> So this part has the changes that are needed pre-7.1?
> And the other is for changes going into 7.1?
That was the idea, but since you want them to be split per driver, I'm
going to send two patch series.