summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorTyler Baicar <tbaicar@codeaurora.org>2016-09-14 23:14:46 +0200
committerBjorn Helgaas <bhelgaas@google.com>2016-09-20 21:36:59 +0200
commit2458d66b245e39786bc5b51062e6d30aa5ad0282 (patch)
tree21c068d1cf7e24e15117859b36017d209192c43a /drivers/acpi
parentPCI/AER: Remove duplicate AER severity translation (diff)
downloadlinux-2458d66b245e39786bc5b51062e6d30aa5ad0282.tar.xz
linux-2458d66b245e39786bc5b51062e6d30aa5ad0282.zip
ACPI / APEI: Send correct severity to calculate AER severity
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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/apei/ghes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index 60746ef904e4..f0a029e68d3e 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -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