Skip to content

PCI/AER: Improve Error Source handling

Lukas Wunner linux-pci linuxppc-dev sashiko-reviews 2 versions – Applied

Status from this message: Applied to pci/aer for v7.5, thank you!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesApplied
  2. v12 patches 7 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2PCI/AER: Avoid NULL pointer deref on search for Error Sourcedrivers/pci/pcie/aer.c+1 -10 replies
2/2PCI/AER: Check validity of Error Source ID registerdrivers/pci/pci.h drivers/pci/pcie/aer.c drivers/pci/pcie/rcec.c+46 -103 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchIlpo JärvinenKuppuswamy SathyanarayananAlex Deucher
1/2R-b R-b
2/2R-b R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/2] PCI/AER: Improve Error Source handling

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(-)
Signature · 1 line
2.53.0