aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-02-13 09:00:05 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-02-13 09:00:05 +0200
commitc730256b331cc0494793a7b9b45d3e7496a3ebad (patch)
treeadd203e64a517bdd09ac8e598fac593719586846 /hw
parent0009baf16c30f6a0ef4d9deadbabd53143ac3c93 (diff)
parent8fd5cf4bcb2a6609b50f5abc46b89cb435973926 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci.c b/hw/pci.c
index 9ad63dd948..e91d2e693f 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -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) {