projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa2ac1d
)
intc: i8259: Convert Array allocation to g_new0
author
Peter Crosthwaite
<peter.crosthwaite@xilinx.com>
Fri, 15 Aug 2014 08:15:44 +0000
(
01:15
-0700)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Fri, 15 Aug 2014 14:54:55 +0000
(18:54 +0400)
To be more array friendly and to indicate the IRQs are initially
disconnected.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/intc/i8259.c
patch
|
blob
|
history
diff --git
a/hw/intc/i8259.c
b/hw/intc/i8259.c
index d0b0c52b975afceb8e98ea8890f54ed012e2df06..a563b82c4ef638639d74ae3a8a7a2d4e1c7e62ec 100644
(file)
--- a/
hw/intc/i8259.c
+++ b/
hw/intc/i8259.c
@@
-472,7
+472,7
@@
qemu_irq *i8259_init(ISABus *bus, qemu_irq parent_irq)
ISADevice *isadev;
int i;
- irq_set = g_
malloc(ISA_NUM_IRQS * sizeof(qemu_irq)
);
+ irq_set = g_
new0(qemu_irq, ISA_NUM_IRQS
);
isadev = i8259_init_chip(TYPE_I8259, bus, true);
dev = DEVICE(isadev);