]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ACPICA: AML Parser: skip opcodes that open a scope upon parse failure
authorErik Schmauss <erik.schmauss@intel.com>
Fri, 10 Aug 2018 21:42:58 +0000 (14:42 -0700)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:46:09 +0000 (19:46 -0600)
commit4f492a37d1863cab901358a0c5909ae696f1e477
tree921b671b8bc1be3f32eb7c97acd968d4d16af436
parenta8b156699c449354fdbc9a1a53868aa93de5011a
ACPICA: AML Parser: skip opcodes that open a scope upon parse failure

BugLink: https://bugs.launchpad.net/bugs/1835972
commit 4a7c94c721074eafb27298d93dbcc339aa28e745 upstream.

This change skips the entire length of opcodes that open a scope
(Device, Scope, Processor, etc) if the creation of the op fails. The
failure could be caused by various errors including AE_ALREADY_EXISTS
and AE_NOT_FOUND.

Reported-by: Jeremy Linton <jeremy.linton@arm.com>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Cc: 4.17+ <stable@vger.kernel.org> # 4.17+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/acpi/acpica/psloop.c