]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ACPICA: AML Parser: ignore control method status in module-level code
authorErik Schmauss <erik.schmauss@intel.com>
Sat, 28 Jul 2018 21:05:19 +0000 (14:05 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Mar 2019 13:21:09 +0000 (14:21 +0100)
commit631bf09fa84a647f93b8bdd8b0b18428da47dcd6
tree7414575837047e3a6a6a28709a4b639058364fcc
parenta1860f00c49cdbda3a6c1551abbcc12c1ae11b80
ACPICA: AML Parser: ignore control method status in module-level code

BugLink: http://bugs.launchpad.net/bugs/1815234
commit 460a53106ac39b74625d1104d9a113e0f3716c18 upstream.

Previous change in the AML parser code blindly set all non-successful
dispatcher statuses to AE_OK. That approach is incorrect, though,
because successful control method invocations from module-level
return AE_CTRL_TRANSFER. Overwriting AE_OK to this status causes the
AML parser to think that there was no return value from the control
method invocation.

Fixes: 92c0f4af386 (ACPICA: AML Parser: ignore dispatcher error status during table load)
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Tested-by: Linus Torvalds <torvalds@linux-foundation.org>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
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: Stefan Bader <stefan.bader@canonical.com>
drivers/acpi/acpica/psloop.c