projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49fdf67
)
ACPI: fix de-reference bug in power resource driver
author
Zhao Yakui
<yakui.zhao@intel.com>
Mon, 27 Oct 2008 08:04:53 +0000
(16:04 +0800)
committer
Len Brown
<len.brown@intel.com>
Tue, 28 Oct 2008 05:38:59 +0000
(
01:38
-0400)
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>
drivers/acpi/power.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/power.c
b/drivers/acpi/power.c
index a1718e56103b33b5da9909b23727c4474611f90f..30d4a5282a2d0ed03d62370481c8e9d11f8389bd 100644
(file)
--- 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;
}