# \[PATCH 0/2\] PCI/AER: Improve Error Source handling

- From: Lukas Wunner \<lukas@wunner.de\>
- Date: 2026-11-03 09:45:08 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/11/17850965
- Thread: https://ratatoskr.run/linux-pci/2026/11/17850965/t.md

```text
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.  Patch [2/2] fixes that.

Also, a potential NULL pointer deref caught my eye in that portion of the
code which is fixed by patch [1/2].  I believe this is hard to trigger,
but the kernel should still handle it gracefully.

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  | 35 ++++++++++++++++++++++++++---------
 drivers/pci/pcie/rcec.c | 14 ++++++++++++++
 3 files changed, 46 insertions(+), 10 deletions(-)

-- 
2.53.0


```
