Commit 2458d66b authored by Tyler Baicar's avatar Tyler Baicar Committed by Bjorn Helgaas

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: default avatarTyler Baicar <tbaicar@codeaurora.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarBorislav Petkov <bp@suse.de>
parent 95c35491
...@@ -457,7 +457,7 @@ static void ghes_do_proc(struct ghes *ghes, ...@@ -457,7 +457,7 @@ static void ghes_do_proc(struct ghes *ghes,
devfn = PCI_DEVFN(pcie_err->device_id.device, devfn = PCI_DEVFN(pcie_err->device_id.device,
pcie_err->device_id.function); 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 * If firmware reset the component to contain
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment