summaryrefslogtreecommitdiff
path: root/drivers/acpi
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2008-10-27 16:04:53 +0800
committerLen Brown <len.brown@intel.com>2008-10-28 01:38:59 -0400
commitb1b57fbe9bb10d94682a975456de7a727d1dbc84 (patch)
treedbbd013ad46376885d7a903389cee1e8c609e785 /drivers/acpi
parent49fdf6785fd660e18a1eb4588928f47e9fa29a9a (diff)
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 <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/power.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
index a1718e56103b..30d4a5282a2d 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;
}