]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ACPI / APEI: Send correct severity to calculate AER severity
authorTyler Baicar <tbaicar@codeaurora.org>
Wed, 14 Sep 2016 21:14:46 +0000 (15:14 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 20 Sep 2016 19:36:59 +0000 (14:36 -0500)
Currently the AER severity is calculated by calling cper_severity_to_aer(),
but the parameter sent is actually the GHES severity.  This causes the AER
severity to be incorrect.

Fix the parameter to be the CPER severity instead of the GHES severity.

Signed-off-by: Tyler Baicar <tbaicar@codeaurora.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
drivers/acpi/apei/ghes.c

index 60746ef904e495e382bfa5efe773e62371d46a6d..f0a029e68d3e2989b7e3ad79a02d1d0c36e1b0f4 100644 (file)
@@ -457,7 +457,7 @@ static void ghes_do_proc(struct ghes *ghes,
 
                                devfn = PCI_DEVFN(pcie_err->device_id.device,
                                                  pcie_err->device_id.function);
-                               aer_severity = cper_severity_to_aer(sev);
+                               aer_severity = cper_severity_to_aer(gdata->error_severity);
 
                                /*
                                 * If firmware reset the component to contain