diff options
author | Bob Moore <robert.moore@intel.com> | 2012-10-30 22:24:51 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-14 18:31:21 -0500 |
commit | 45dcd31547fcd58273423799b12efe0e8371127e (patch) | |
tree | fc89c938a91796caa1ee581f45581a05d806aa16 /drivers/acpi/acpica/nsdump.c | |
parent | 77b67063bb6bce6d475e910d3b886a606d0d91f7 (diff) |
Cleanup of invalid ACPI name handling and repair
Implemented a change/cleanup for the handling of invalid ACPI names.
Names are now validated and repaired only when
1) entering a new name into the namespace and
2) disassembling a named AML opcode. A warning is only displayed in
debug mode or when the interpreter is in "strict" mode, since some
working machines do in fact contain invalid ACPI names.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/nsdump.c')
-rw-r--r-- | drivers/acpi/acpica/nsdump.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/acpi/acpica/nsdump.c b/drivers/acpi/acpica/nsdump.c index 2526aaf945ee..993b12417e7f 100644 --- a/drivers/acpi/acpica/nsdump.c +++ b/drivers/acpi/acpica/nsdump.c | |||
@@ -209,14 +209,6 @@ acpi_ns_dump_one_object(acpi_handle obj_handle, | |||
209 | "Invalid ACPI Object Type 0x%08X", type)); | 209 | "Invalid ACPI Object Type 0x%08X", type)); |
210 | } | 210 | } |
211 | 211 | ||
212 | if (!acpi_ut_valid_acpi_name(this_node->name.integer)) { | ||
213 | this_node->name.integer = | ||
214 | acpi_ut_repair_name(this_node->name.ascii); | ||
215 | |||
216 | ACPI_WARNING((AE_INFO, "Invalid ACPI Name %08X", | ||
217 | this_node->name.integer)); | ||
218 | } | ||
219 | |||
220 | acpi_os_printf("%4.4s", acpi_ut_get_node_name(this_node)); | 212 | acpi_os_printf("%4.4s", acpi_ut_get_node_name(this_node)); |
221 | } | 213 | } |
222 | 214 | ||