linux/drivers/acpi/x86
Hans de Goede 4a49194f58 ACPI: x86: Add adev NULL check to acpi_quirk_skip_serdev_enumeration()
acpi_dev_hid_match() does not check for adev == NULL, dereferencing
it unconditional.

Add a check for adev being NULL before calling acpi_dev_hid_match().

At the moment acpi_quirk_skip_serdev_enumeration() is never called with
a controller_parent without an ACPI companion, but better safe than sorry.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patch.msgid.link/20241109220028.83047-1-hdegoede@redhat.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2024-11-12 21:21:58 +01:00
..
apple.c
blacklist.c ACPI: x86: Move blacklist to x86 folder 2024-04-08 16:39:24 +02:00
cmos_rtc.c ACPI: x86: Move acpi_cmos_rtc to x86 folder 2024-04-08 16:39:24 +02:00
lpss.c ACPI: LPSS: Switch to new Intel CPU model defines 2024-06-07 20:28:07 +02:00
Makefile ACPI: x86: Move LPSS to x86 folder 2024-04-08 16:39:24 +02:00
s2idle.c ACPI: PM: s2idle: Evaluate all Low-Power S0 Idle _DSM functions 2024-04-23 21:50:15 +02:00
utils.c ACPI: x86: Add adev NULL check to acpi_quirk_skip_serdev_enumeration() 2024-11-12 21:21:58 +01:00