From patchwork Mon Feb 8 06:38:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: pci: fix pci_find_bus() X-Patchwork-Submitter: Isaku Yamahata X-Patchwork-Id: 44761 Message-Id: <20100208063836.GB22624@valinux.co.jp> To: qemu-devel@nongnu.org Cc: Blue Swirl , "Michael S. Tsirkin" Date: Mon, 8 Feb 2010 15:38:36 +0900 From: Isaku Yamahata List-Id: qemu-devel.nongnu.org typo in c021f8e65f5009a5ab5711d9d5326fcab553ef1c. comparison fix. Cc: Blue Swirl Cc: "Michael S. Tsirkin" Signed-off-by: Isaku Yamahata --- hw/pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 9ad63dd..e91d2e6 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) {