Erik Kaneda 5ddbd77181 ACPICA: Disassembler: create buffer fields in ACPI_PARSE_LOAD_PASS1
ACPICA commit 29cc8dbc5463a93625bed87d7550a8bed8913bf4

create_buffer_field is a deferred op that is typically processed in
load pass 2. However, disassembly of control method contents walk the
parse tree with ACPI_PARSE_LOAD_PASS1 and AML_CREATE operators are
processed in a later walk. This is a problem when there is a control
method that has the same name as the AML_CREATE object. In this case,
any use of the name segment will be detected as a method call rather
than a reference to a buffer field. If this is detected as a method
call, it can result in a mal-formed parse tree if the control methods
have parameters.

This change in processing AML_CREATE ops earlier solves this issue by
inserting the named object in the ACPI namespace so that references
to this name would be detected as a name string rather than a method
call.

Link: https://github.com/acpica/acpica/commit/29cc8dbc
Reported-by: Elia Geretto <elia.f.geretto@gmail.com>
Tested-by: Elia Geretto <elia.f.geretto@gmail.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2019-12-19 23:04:21 +01:00
..
2019-12-03 13:58:22 -08:00
2019-12-15 12:24:44 -08:00
2019-12-06 10:28:09 -08:00
2019-12-05 11:38:40 -08:00
2019-12-01 18:43:25 -08:00
2019-11-22 11:16:26 +05:30
2019-12-10 23:15:09 +01:00
2019-12-15 14:58:13 -08:00
2019-12-03 13:58:22 -08:00
2019-12-03 13:58:22 -08:00
2019-11-30 14:35:43 -08:00
2019-12-01 18:42:02 -08:00
2019-12-13 14:27:19 -08:00
2019-12-09 10:36:44 -08:00
2019-12-06 08:28:51 -08:00
2019-12-03 13:58:22 -08:00
2019-12-03 14:37:12 -08:00
2019-11-27 11:06:20 -08:00
2019-12-03 14:09:14 -08:00
2019-12-09 10:36:44 -08:00
2019-12-01 18:43:25 -08:00
2019-12-13 14:27:19 -08:00
2019-12-05 11:43:31 -08:00
2019-11-25 19:40:40 -08:00
2019-12-05 11:43:31 -08:00
2019-12-03 14:37:12 -08:00
2019-12-05 11:28:14 -08:00
2019-12-05 11:43:31 -08:00
2019-12-01 18:39:24 -08:00
2019-12-03 13:31:08 -08:00
2019-12-09 10:36:44 -08:00
2019-12-14 12:51:57 -08:00
2019-12-06 14:19:37 -08:00
2019-11-22 19:56:35 +00:00
2019-12-14 12:43:57 -08:00
2019-12-09 10:36:44 -08:00
2019-12-05 13:18:54 -08:00
2019-12-03 14:09:14 -08:00
2019-12-14 12:40:39 -08:00
2019-12-07 14:51:04 -08:00
2019-12-03 13:58:22 -08:00
2019-11-14 13:06:33 +08:00
2019-12-01 18:01:03 -08:00
2019-12-15 12:24:44 -08:00