提交 b1b57fbe 编写于 作者: Z Zhao Yakui 提交者: Len Brown

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: NLen Brown <len.brown@intel.com>
上级 49fdf678
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册