Skip to content
Commit 2d559513 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

ACPI / ACPICA: Avoid crashing if _PRW is defined for the root object



Some ACPI BIOSes define _PRW for the root object which causes
acpi_setup_gpe_for_wake() to crash when trying to dereference the
bogus device_node pointer.  Avoid the crash by checking if
wake_device is not the root object before attempting to set up the
"implicit notify" mechanism for it.

The problem was introduced by commit bba63a29
(ACPICA: Implicit notify support) that added the wake_device argument
to acpi_setup_gpe_for_wake().

Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent 100b33c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment