Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeNG8-0004U8-Rz for qemu-devel@nongnu.org; Mon, 08 Feb 2010 01:38:12 -0500 Received: from [199.232.76.173] (port=41088 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeNG7-0004Ty-SG for qemu-devel@nongnu.org; Mon, 08 Feb 2010 01:38:11 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeNG1-0000k8-Jp for qemu-devel@nongnu.org; Mon, 08 Feb 2010 01:38:11 -0500 Received: from mail.valinux.co.jp ([210.128.90.3]:37064) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NeNG1-0000k2-2Z for qemu-devel@nongnu.org; Mon, 08 Feb 2010 01:38:05 -0500 Date: Mon, 8 Feb 2010 15:38:36 +0900 From: Isaku Yamahata Message-ID: <20100208063836.GB22624@valinux.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] pci: fix pci_find_bus() List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , "Michael S. Tsirkin" 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) { -- 1.6.6.1