]> git.baikalelectronics.ru Git - kernel.git/commit
ACPICA: AML Parser: fix parse loop to correctly skip erroneous extended opcodes
authorErik Schmauss <erik.schmauss@intel.com>
Wed, 17 Oct 2018 21:20:51 +0000 (14:20 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 18 Oct 2018 07:17:04 +0000 (09:17 +0200)
commitb67b00689e5a8df3809112ad4f7fe869eb16407c
tree3af11ad5e7c2a6fec7a8043ec8ed4bbe540ee3a9
parent4776324e0f5c5d2961e226258265f332498885a1
ACPICA: AML Parser: fix parse loop to correctly skip erroneous extended opcodes

AML opcodes come in two lengths: 1-byte opcodes and 2-byte, extended opcodes.
If an error occurs due to illegal opcodes during table load, the AML parser
needs to continue loading the table. In order to do this, it needs to skip
parsing of the offending opcode and operands associated with that opcode.

This change fixes the AML parse loop to correctly skip parsing of incorrect
extended opcodes. Previously, only the short opcodes were skipped correctly.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/psloop.c