acpi, apei, bert: Clear error status at the end of error handling
Once error log is printed out clear error status so it would not be
print during next boot again.
Signed-off-by: Tomasz Nowicki <tomasz.nowicki@linaro.org>
Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
Tested-by: Jonathan (Zhixiong) Zhang <zjzhang@codeaurora.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
diff --git a/drivers/acpi/apei/bert.c b/drivers/acpi/apei/bert.c
index 8ee48cd..2ccad79 100644
--- a/drivers/acpi/apei/bert.c
+++ b/drivers/acpi/apei/bert.c
@@ -66,6 +66,9 @@
first = 0;
}
cper_estatus_print(KERN_INFO HW_ERR, estatus);
+
+ /* Clear error status */
+ estatus->block_status = 0;
next:
estatus = (void *)estatus + estatus_len;
remain -= estatus_len;