qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [COMMIT 616cbc7] Fix PCI IRQ breakage


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 616cbc7] Fix PCI IRQ breakage
Date: Sat, 11 Jul 2009 21:50:48 -0000

From: Paul Brook <address@hidden>

Zero initialize the PCI bus irq count.

Signed-off-by: Paul Brook <address@hidden>

diff --git a/hw/pci.c b/hw/pci.c
index f592925..a6fb957 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);




reply via email to

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