]> asedeno.scripts.mit.edu Git - linux.git/commit
ACPICA: AML parser: attempt to continue loading table after error
authorErik Schmauss <erik.schmauss@intel.com>
Fri, 1 Jun 2018 19:06:43 +0000 (12:06 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 6 Jun 2018 06:53:43 +0000 (08:53 +0200)
commit5088814a6e931350e5bd29f5d59fa40c6dbbdf10
treeb8ac50dc8f6e826eae179409c4cf9a3aa6f5f06a
parent3877b2ccb71356492d8f514a76d764c3ecc1147e
ACPICA: AML parser: attempt to continue loading table after error

This change alters the parser so that the table load does not abort
upon an error.

Notable changes:

If there is an error while parsing an element of the termlist, we
will skip parsing the current termlist element and continue parsing
to the next opcode in the termlist.

If we get an error while parsing the conditional of If/Else/While or
the device name of Scope, we will skip the body of the statement all
together and pop the parser_state.

If we get an error while parsing the base offset and length of an
operation region declaration, we will remove the operation region
from the namespace.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/psloop.c
drivers/acpi/acpica/psobject.c
drivers/acpi/acpica/uterror.c