While analyzing log output provided by Alex, I noticed that the AER driver fails to find the error-signaling device if the Error Source ID register contains an invalid, non-zero value. Fix it (patch [2/2]).
While at it, fix a potential NULL pointer deref in that portion of the code (patch [1/2]). Changes versus v1 in patch [2/2]: Reorder a < b && b < c comparisons (Ilpo, Bjorn) Amend kernel-doc of find_source_device() (Sathya) s/subordinate/secondary/ in commit message (Bjorn) Document behavioral change in commit message (sashiko) Link to v1: https://lore.kernel.org/r/[email protected] Lukas Wunner (2): PCI/AER: Avoid NULL pointer deref on search for Error Source PCI/AER: Check validity of Error Source ID register drivers/pci/pci.h | 7 ++++++- drivers/pci/pcie/aer.c | 37 +++++++++++++++++++++++++++---------- drivers/pci/pcie/rcec.c | 14 ++++++++++++++ 3 files changed, 47 insertions(+), 11 deletions(-) -- 2.53.0
