Skip to content

Commit

Permalink
ACPI: fix de-reference bug in power resource driver
Browse files Browse the repository at this point in the history
change state to *state in the function of acpi_power_get_state()

Signed-off-by: yakui.zhao@intel.com
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Zhao Yakui authored and Len Brown committed Oct 28, 2008
1 parent 49fdf67 commit b1b57fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/acpi/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b1b57fb

Please sign in to comment.