mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 04:32:03 +00:00
cb4cb4ac73
Commit 47a8b0cc (Enable PCIe AER only after checking firmware support) wants to walk the PCI bus in the remove path to disable AER, and calls pci_walk_bus for downstream bridges. Unfortunately, in the remove path, we remove devices and bridges in a depth-first manner, starting with the furthest downstream bridge and working our way backwards. The furthest downstream bridges will not have a dev->subordinate, and we hit a NULL deref in pci_walk_bus. Check for dev->subordinate first before attempting to walk the PCI hierarchy below us. Acked-by: Andrew Patterson <andrew.patterson@hp.com> Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Matthew Wilcox <willy@linux.intel.com> |
||
---|---|---|
.. | ||
aer | ||
aspm.c | ||
Kconfig | ||
Makefile | ||
portdrv_bus.c | ||
portdrv_core.c | ||
portdrv_pci.c | ||
portdrv.h |