diff options
author | Alex Chiang <[email protected]> | 2009-03-05 19:28:40 -0700 |
---|---|---|
committer | Matthew Wilcox <[email protected]> | 2009-03-12 15:09:51 -0400 |
commit | cb4cb4ac7338c28b047760be187355ed9c783e72 (patch) | |
tree | f6cacbf06c400498c05bb4072f61e045aac0204e /net/lapb/lapb_subr.c | |
parent | 649426efcfbc67a8b033497151816cbac9fd0cfa (diff) |
PCIe: AER: during disable, check subordinate before walking
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 <[email protected]>
Signed-off-by: Alex Chiang <[email protected]>
Signed-off-by: Matthew Wilcox <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions