diff options
author | 2014-01-23 21:59:21 +0100 | |
---|---|---|
committer | 2014-02-10 16:50:49 -0700 | |
commit | 9a4d7d87197e3ff9138981e196aa5021d13a51a8 (patch) | |
tree | d2cd45ba70567f351ae465322d4844905d181296 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linus 3.14-rc1 (diff) | |
download | wireguard-linux-9a4d7d87197e3ff9138981e196aa5021d13a51a8.tar.xz wireguard-linux-9a4d7d87197e3ff9138981e196aa5021d13a51a8.zip |
PCI: Increment max correctly in pci_scan_bridge()
This patch fixes two small issues:
- If pci_add_new_bus() fails, max must not be incremented. Otherwise
an incorrect value is returned from pci_scan_bridge().
- If the bus is already present, max must be incremented. I think
that this case should only be hit if we trigger a manual rescan of a
CardBus bridge.
Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions