pci: fix pci_find_bus()
typo in c021f8e65f
.
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>
This commit is contained in:
parent
e8105ebb94
commit
8fd5cf4bcb
2
hw/pci.c
2
hw/pci.c
@ -1558,7 +1558,7 @@ PCIBus *pci_find_bus(PCIBus *bus, int bus_num)
|
|||||||
/* try child bus */
|
/* try child bus */
|
||||||
QLIST_FOREACH(sec, &bus->child, sibling) {
|
QLIST_FOREACH(sec, &bus->child, sibling) {
|
||||||
if (!bus->parent_dev /* pci host bridge */
|
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]) ) {
|
bus_num <= bus->parent_dev->config[PCI_SUBORDINATE_BUS]) ) {
|
||||||
ret = pci_find_bus(sec, bus_num);
|
ret = pci_find_bus(sec, bus_num);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
Loading…
Reference in New Issue
Block a user