]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ACPI / APEI: clear error status before acknowledging the error
authorTyler Baicar <tbaicar@codeaurora.org>
Tue, 16 Jan 2018 23:14:48 +0000 (17:14 -0600)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 16 Feb 2018 17:42:04 +0000 (12:42 -0500)
commitf3f75832adb10ad96cdeeb9c8a0f84aac34f6b83
tree81a98fd065f266c0e526e5d023bb3a6f38083ec3
parente3aacb16d27e4c8c81082be9cdae572441eeea26
ACPI / APEI: clear error status before acknowledging the error

BugLink: https://launchpad.net/bugs/1732990
Currently we acknowledge errors before clearing the error status.
This could cause a new error to be populated by firmware in-between
the error acknowledgment and the error status clearing which would
cause the second error's status to be cleared without being handled.
So, clear the error status before acknowledging the errors.

Also, make sure to acknowledge the error if the error status read
fails.

Signed-off-by: Tyler Baicar <tbaicar@codeaurora.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit aaf2c2fb0f51f91c699039440862b6ae9c25c10e)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Acked-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/acpi/apei/ghes.c