diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-02-13 09:00:05 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-02-13 09:00:05 +0200 |
commit | c730256b331cc0494793a7b9b45d3e7496a3ebad (patch) | |
tree | add203e64a517bdd09ac8e598fac593719586846 /hw | |
parent | 0009baf16c30f6a0ef4d9deadbabd53143ac3c93 (diff) | |
parent | 8fd5cf4bcb2a6609b50f5abc46b89cb435973926 (diff) |
Merge branch 'for_anthony' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu
* 'for_anthony' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu:
pci: fix pci_find_bus()
Diffstat (limited to 'hw')
-rw-r--r-- | hw/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1558,7 +1558,7 @@ PCIBus *pci_find_bus(PCIBus *bus, int bus_num) /* try child bus */ QLIST_FOREACH(sec, &bus->child, sibling) { if (!bus->parent_dev /* pci host bridge */ - || (pci_bus_num(sec) >= bus_num && + || (pci_bus_num(sec) <= bus_num && bus_num <= bus->parent_dev->config[PCI_SUBORDINATE_BUS]) ) { ret = pci_find_bus(sec, bus_num); if (ret) { |