ACPI/APEI: Clear GHES block_status before panic()
authorLenny Szubowicz <lszubowi@redhat.com>
Wed, 19 Dec 2018 16:50:52 +0000 (11:50 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 20 Dec 2018 20:35:45 +0000 (21:35 +0100)
commit98cff8b23ed1c763a029ee81ea300df0d153d07d
treeab49e11cec4b7c632ba391b5fced4295d169386b
parent0c166c3deda577955cb39f0242b734634949f1d3
ACPI/APEI: Clear GHES block_status before panic()

In __ghes_panic() clear the block status in the APEI generic
error status block for that generic hardware error source before
calling panic() to prevent a second panic() in the crash kernel
for exactly the same fatal error.

Otherwise ghes_probe(), running in the crash kernel, would see
an unhandled error in the APEI generic error status block and
panic again, thereby precluding any crash dump.

Signed-off-by: Lenny Szubowicz <lszubowi@redhat.com>
Signed-off-by: David Arcari <darcari@redhat.com>
Tested-by: Tyler Baicar <baicar.tyler@gmail.com>
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/ghes.c