diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2008-10-27 09:04:53 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-28 06:38:59 +0100 |
commit | b1b57fbe9bb10d94682a975456de7a727d1dbc84 (patch) | |
tree | dbbd013ad46376885d7a903389cee1e8c609e785 /drivers/acpi/power.c | |
parent | Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block (diff) | |
download | linux-b1b57fbe9bb10d94682a975456de7a727d1dbc84.tar.xz linux-b1b57fbe9bb10d94682a975456de7a727d1dbc84.zip |
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/power.c')
-rw-r--r-- | drivers/acpi/power.c | 3 |
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; } |