]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI/APEI: Clear GHES block_status before panic()
authorLenny Szubowicz <lszubowi@redhat.com>
Wed, 19 Dec 2018 16:50:52 +0000 (11:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:46:07 +0000 (19:46 +0100)
commit74a65f50b9edd3dbd59614df6b7726ca49ff7808
tree39e780ebe839fe55509fc9464b7754d0450f46f7
parent71d357aa1cda88994f11a98c8262f9103c304691
ACPI/APEI: Clear GHES block_status before panic()

[ Upstream commit 98cff8b23ed1c763a029ee81ea300df0d153d07d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/apei/ghes.c