diff options
author | Dongdong Liu <[email protected]> | 2019-02-11 15:02:59 +0800 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2019-02-21 17:07:20 -0600 |
commit | 9f08a5d896ce43380314c34ed3f264c8e6075b80 (patch) | |
tree | da89e2656a63620f16cee2e8d74585d89a025681 /lib/test_overflow.c | |
parent | bfeffd155283772bbe78c6a05dec7c0128ee500c (diff) |
PCI/DPC: Fix print AER status in DPC event handling
Previously dpc_handler() called aer_get_device_error_info() without
initializing info->severity, so aer_get_device_error_info() relied on
uninitialized data.
Add dpc_get_aer_uncorrect_severity() to read the port's AER status, mask,
and severity registers and set info->severity.
Also, clear the port's AER fatal error status bits.
Fixes: 8aefa9b0d910 ("PCI/DPC: Print AER status in DPC event handling")
Signed-off-by: Dongdong Liu <[email protected]>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Cc: [email protected] # v4.19+
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions