diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2010-02-08 15:38:36 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-02-08 12:14:42 +0200 |
commit | 8fd5cf4bcb2a6609b50f5abc46b89cb435973926 (patch) | |
tree | da1be8007c509b33d54bcfdc9fef10653bef96e6 /hw | |
parent | e8105ebb94bf8c79c8ee8a66df5e8dfaabbfdbe1 (diff) |
pci: fix pci_find_bus()
typo in c021f8e65f5009a5ab5711d9d5326fcab553ef1c.
comparison fix.
Cc: Blue Swirl <blauwirbel@gmail.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
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) { |