[PATCH 2/2] ACPICA: remove AE_NOT_FOUND errors for non-existing _Sx objects in AML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After 48ffb94f9e6f9b11c26884f26199e3d51bb22e54, AE_NOT_FOUND errors are shown
in dmesg as below:

ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_]
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_]

However, neither _S1 nor _S2 are defined in AML and thus these are false
errors. This patch restores the related control flow to it was before
48ffb94f9e6f9b11c26884f26199e3d51bb22e54.

Signed-off-by: Alex Hung <alex.hung@xxxxxxxxxxxxx>
---
 drivers/acpi/acpica/hwxface.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/acpi/acpica/hwxface.c b/drivers/acpi/acpica/hwxface.c
index a0488b4..7a137c0 100644
--- a/drivers/acpi/acpica/hwxface.c
+++ b/drivers/acpi/acpica/hwxface.c
@@ -499,7 +499,7 @@ acpi_get_sleep_type_data(u8 sleep_state, u8 *sleep_type_a, u8 *sleep_type_b)
 	    ACPI_CAST_PTR(char, acpi_gbl_sleep_state_names[sleep_state]);
 	status = acpi_ns_evaluate(info);
 	if (ACPI_FAILURE(status)) {
-		goto cleanup;
+		goto cleanup2;
 	}
 
 	/* Must have a return object */
@@ -571,6 +571,7 @@ cleanup:
 				info->relative_pathname));
 	}
 
+cleanup2:
 	ACPI_FREE(info);
 	return_ACPI_STATUS(status);
 }
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux