Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1b57fbe authored by Zhao Yakui's avatar Zhao Yakui Committed by Len Brown
Browse files

ACPI: fix de-reference bug in power resource driver



change state to *state in the function of acpi_power_get_state()

Signed-off-by: default avatar <yakui.zhao@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 49fdf678
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
}