]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: processor: idle: Check acpi_fetch_acpi_dev() return value
authorLi Zhong <floridsleeves@gmail.com>
Fri, 2 Sep 2022 07:37:30 +0000 (00:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:26:40 +0000 (13:26 +0100)
commit2ecd629c788bbfb96be058edade2e934d3763eaf
treefbae484643fdca9da7aeccbf88936031358be096
parentab5cd3d62c2493eca3337e7d0178cc7bd819ca64
ACPI: processor: idle: Check acpi_fetch_acpi_dev() return value

[ Upstream commit 2437513a814b3e93bd02879740a8a06e52e2cf7d ]

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>
drivers/acpi/processor_idle.c