From 616cbc78a50c638b94cc4756a565f11bb10dbfeb Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Sat, 11 Jul 2009 22:46:05 +0100 Subject: Fix PCI IRQ breakage Zero initialize the PCI bus irq count. Signed-off-by: Paul Brook --- hw/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/pci.c') diff --git a/hw/pci.c b/hw/pci.c index f592925d06..a6fb957b27 100644 --- a/hw/pci.c +++ b/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); -- cgit v1.2.3