]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a1a576339262f189a167b394ae566f55f7d012d
tree8bce7f79939c146283f1943259fbfbe1bde6d5c6
parent0a86d7974733cab233c254cd7c25f4cdb70b7434
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