mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ACPI: fix de-reference bug in power resource driver
change state to *state in the function of acpi_power_get_state() Signed-off-by: [email protected] Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
49fdf6785f
commit
b1b57fbe9b
1 changed files with 2 additions and 1 deletions
|
|
@ -153,7 +153,8 @@ static int acpi_power_get_state(acpi_handle handle, int *state)
|
|||
ACPI_POWER_RESOURCE_STATE_OFF;
|
||||
|
||||
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Resource [%s] is %s\n",
|
||||
acpi_ut_get_node_name(handle), state ? "on" : "off"));
|
||||
acpi_ut_get_node_name(handle),
|
||||
*state ? "on" : "off"));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue