Fix PCI IRQ breakage
Zero initialize the PCI bus irq count. Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
110c50fd31
commit
616cbc78a5
2
hw/pci.c
2
hw/pci.c
@ -123,7 +123,7 @@ PCIBus *pci_register_bus(DeviceState *parent, const char *name,
|
||||
bus->irq_opaque = pic;
|
||||
bus->devfn_min = devfn_min;
|
||||
bus->nirq = nirq;
|
||||
bus->irq_count = qemu_malloc(nirq * sizeof(bus->irq_count[0]));
|
||||
bus->irq_count = qemu_mallocz(nirq * sizeof(bus->irq_count[0]));
|
||||
bus->next = first_bus;
|
||||
first_bus = bus;
|
||||
register_savevm("PCIBUS", nbus++, 1, pcibus_save, pcibus_load, bus);
|
||||
|
Loading…
Reference in New Issue
Block a user