summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2016-08-04 04:42:42 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-08-12 21:09:31 -0400
commit7fdb5cea9bf288eb6408538fa67f1559f433ab9d (patch)
treeefbf6f6a1ac6af652db7eed53b8ff9a5bd0dda98
parentfee4ab9c0cf223e9f0f2d9d2e5a2f24f6539ccbd (diff)
ACPICA: Interpreter: Remove temporary code for External() opcode
ACPICA commit f2d349f8a11efc0f438ad6903564f3a6755dc6b9 The interpreter should never see this opcode (it is used by disassemblers), so the final implementation is to return an error. Link: https://github.com/acpica/acpica/commit/f2d349f8 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/acpi/acpica/dsutils.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/acpi/acpica/dsutils.c b/drivers/acpi/acpica/dsutils.c
index f393de9f5887..7d8ef52fb88d 100644
--- a/drivers/acpi/acpica/dsutils.c
+++ b/drivers/acpi/acpica/dsutils.c
@@ -565,15 +565,14 @@ acpi_ds_create_operand(struct acpi_walk_state *walk_state,
565 status = AE_OK; 565 status = AE_OK;
566 } else if (parent_op->common.aml_opcode == 566 } else if (parent_op->common.aml_opcode ==
567 AML_EXTERNAL_OP) { 567 AML_EXTERNAL_OP) {
568 568 /*
569 /* TBD: May only be temporary */ 569 * This opcode should never appear here. It is used only
570 570 * by AML disassemblers and is surrounded by an If(0)
571 obj_desc = 571 * by the ASL compiler.
572 acpi_ut_create_string_object((acpi_size)name_length); 572 *
573 573 * Therefore, if we see it here, it is a serious error.
574 strncpy(obj_desc->string.pointer, 574 */
575 name_string, name_length); 575 status = AE_AML_BAD_OPCODE;
576 status = AE_OK;
577 } else { 576 } else {
578 /* 577 /*
579 * We just plain didn't find it -- which is a 578 * We just plain didn't find it -- which is a