Skip to content
Commit 2437513a authored by Li Zhong's avatar Li Zhong Committed by Rafael J. Wysocki
Browse files

ACPI: processor: idle: Check acpi_fetch_acpi_dev() return value



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: default avatarLi Zhong <floridsleeves@gmail.com>
[ rjw: Subject and changelog edits, added empty line after if () ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 247f34f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment