ACPI / APEI: clear error status before acknowledging the error
authorTyler Baicar <tbaicar@codeaurora.org>
Mon, 28 Aug 2017 16:53:41 +0000 (10:53 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 Sep 2017 21:13:06 +0000 (23:13 +0200)
commitaaf2c2fb0f51f91c699039440862b6ae9c25c10e
tree8bce7f79939c146283f1943259fbfbe1bde6d5c6
parente931d0dab4393f7195f84f42ed6fd973c26f62f1
ACPI / APEI: clear error status before acknowledging the error

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>
drivers/acpi/apei/ghes.c