diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2016-05-27 21:40:35 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2016-05-27 21:40:35 +0000 |
commit | 4d46bb7749ef0cf25eb2b25f2d7324023cb754b4 (patch) | |
tree | f7064866b29ad07c184316d5bbb13a4cb187326b /source/components/dispatcher/dsutils.c | |
parent | 2331c681155dd7b2f78bd28ca0c183e2f98ff44f (diff) |
Notes
Diffstat (limited to 'source/components/dispatcher/dsutils.c')
-rw-r--r-- | source/components/dispatcher/dsutils.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/components/dispatcher/dsutils.c b/source/components/dispatcher/dsutils.c index f41f6b2b2165..66eac34f1cc4 100644 --- a/source/components/dispatcher/dsutils.c +++ b/source/components/dispatcher/dsutils.c @@ -603,12 +603,14 @@ AcpiDsCreateOperand ( } else if (ParentOp->Common.AmlOpcode == AML_EXTERNAL_OP) { - /* TBD: May only be temporary */ - - ObjDesc = AcpiUtCreateStringObject ((ACPI_SIZE) NameLength); - - strncpy (ObjDesc->String.Pointer, NameString, NameLength); - Status = AE_OK; + /* + * This opcode should never appear here. It is used only + * by AML disassemblers and is surrounded by an If(0) + * by the ASL compiler. + * + * Therefore, if we see it here, it is a serious error. + */ + Status = AE_AML_BAD_OPCODE; } else { |