projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
110c50f
)
Fix PCI IRQ breakage
author
Paul Brook
<paul@codesourcery.com>
Sat, 11 Jul 2009 21:46:05 +0000
(22:46 +0100)
committer
Paul Brook
<paul@codesourcery.com>
Sat, 11 Jul 2009 21:46:51 +0000
(22:46 +0100)
Zero initialize the PCI bus irq count.
Signed-off-by: Paul Brook <paul@codesourcery.com>
hw/pci.c
patch
|
blob
|
history
diff --git
a/hw/pci.c
b/hw/pci.c
index f592925d0662ae2060dd953aab2f590e94336783..a6fb957b27f636885356d2cd2c0fc454b7bc3d7b 100644
(file)
--- 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_malloc
z
(nirq * sizeof(bus->irq_count[0]));
bus->next = first_bus;
first_bus = bus;
register_savevm("PCIBUS", nbus++, 1, pcibus_save, pcibus_load, bus);