linux/drivers/acpi/processor_idle.c
Li Zhong b85f0e292f ACPI: processor: idle: Check acpi_fetch_acpi_dev() return value
[ Upstream commit 2437513a81 ]

The return value of acpi_fetch_acpi_dev() could be NULL, which would
cause a NULL pointer dereference to occur in acpi_device_hid().

Signed-off-by: Li Zhong <floridsleeves@gmail.com>
[ rjw: Subject and changelog edits, added empty line after if () ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:57 +01:00

1438 lines
36 KiB