From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeQw4-0006Nq-Gg for qemu-devel@nongnu.org; Mon, 08 Feb 2010 05:33:44 -0500 Received: from [199.232.76.173] (port=39984 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeQw3-0006Na-8A for qemu-devel@nongnu.org; Mon, 08 Feb 2010 05:33:43 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeQvx-0003CQ-Vz for qemu-devel@nongnu.org; Mon, 08 Feb 2010 05:33:43 -0500 Received: from mx20.gnu.org ([199.232.41.8]:61829) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NeQvx-0003Ab-BB for qemu-devel@nongnu.org; Mon, 08 Feb 2010 05:33:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NeQvg-0006Ox-8u for qemu-devel@nongnu.org; Mon, 08 Feb 2010 05:33:20 -0500 Date: Mon, 8 Feb 2010 12:30:00 +0200 From: "Michael S. Tsirkin" Message-ID: <20100208102959.GA15917@redhat.com> References: <20100208063836.GB22624@valinux.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100208063836.GB22624@valinux.co.jp> Subject: [Qemu-devel] Re: [PATCH] pci: fix pci_find_bus() List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Isaku Yamahata Cc: Blue Swirl , qemu-devel@nongnu.org On Mon, Feb 08, 2010 at 03:38:36PM +0900, Isaku Yamahata wrote: > typo in c021f8e65f5009a5ab5711d9d5326fcab553ef1c. > comparison fix. > > Cc: Blue Swirl > Cc: "Michael S. Tsirkin" > Signed-off-by: Isaku Yamahata thanks, applied. > --- > 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