diff options
author | Matthew Wilcox <matthew@wil.cx> | 2010-01-17 22:01:41 +0100 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-02-23 01:17:17 +0100 |
commit | 4fb88c1a28a8dc302bdc09858e7cdafc97bef794 (patch) | |
tree | cd2d6ff98626d6d8782edd848c357bc4607ece17 /firmware/dabusb | |
parent | PCI: hotplug/cpcihp, fix pci device refcounting (diff) | |
download | linux-4fb88c1a28a8dc302bdc09858e7cdafc97bef794.tar.xz linux-4fb88c1a28a8dc302bdc09858e7cdafc97bef794.zip |
PCI: Make pci_scan_slot more robust
Yinghai pointed out that the new pci_scan_slot() crashes when called
on an ARI-capable slot that is empty. Fix this by exiting early from
pci_scan_slot if there is no device in the slot.
Also make next_ari_func() robust against devices not existing in case
the ARI capability is corrupt. ARI also requires that the devices be
listed in order, so if we find a function listed that is out of order,
stop scanning to prevent loops.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'firmware/dabusb')
0 files changed, 0 insertions, 0 deletions