Commit ac47a60b3fb370d12cdaf9b91cded9a1934bcc64

Authored by Blue Swirl
1 parent 0c3271c5

Fix APB by reverting 16eaedf2 partially

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Showing 1 changed file with 1 additions and 1 deletions
hw/pci.c
... ... @@ -135,7 +135,7 @@ static PCIBus *pci_register_secondary_bus(PCIDevice *dev, pci_map_irq_fn map_irq
135 135 {
136 136 PCIBus *bus;
137 137  
138   - bus = FROM_QBUS(PCIBus, qbus_create(&pci_bus_info, &dev->qdev, NULL));
  138 + bus = qemu_mallocz(sizeof(PCIBus));
139 139 bus->map_irq = map_irq;
140 140 bus->parent_dev = dev;
141 141 bus->next = dev->bus->next;
... ...