From: Zhao Yakui Date: Mon, 27 Oct 2008 08:04:53 +0000 (+0800) Subject: ACPI: fix de-reference bug in power resource driver X-Git-Tag: v2.6.28-rc5~77^2~5^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b1b57fbe9bb10d94682a975456de7a727d1dbc84;p=linux-2.6-omap-h63xx.git ACPI: fix de-reference bug in power resource driver change state to *state in the function of acpi_power_get_state() Signed-off-by: yakui.zhao@intel.com Signed-off-by: Len Brown --- diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index a1718e56103..30d4a5282a2 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c @@ -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; }