[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 6ffc4bd] minor fix of pci_register_bus()

From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 6ffc4bd] minor fix of pci_register_bus()
Date: Sun, 03 May 2009 19:16:44 -0000

From: Isaku Yamahata <address@hidden>

keep first_bus linked list correct.

Signed-off-by: Isaku Yamahata <address@hidden>

diff --git a/hw/pci.c b/hw/pci.c
index 8278894..ee7d403 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -100,6 +100,7 @@ PCIBus *pci_register_bus(pci_set_irq_fn set_irq, 
pci_map_irq_fn map_irq,
     bus->irq_opaque = pic;
     bus->devfn_min = devfn_min;
     bus->nirq = nirq;
+    bus->next = first_bus;
     first_bus = bus;
     register_savevm("PCIBUS", nbus++, 1, pcibus_save, pcibus_load, bus);
     return bus;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]