summaryrefslogtreecommitdiff
path: root/hw/grlib_irqmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/grlib_irqmp.c')
-rw-r--r--hw/grlib_irqmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/grlib_irqmp.c b/hw/grlib_irqmp.c
index b8738fc04d..9490a7830d 100644
--- a/hw/grlib_irqmp.c
+++ b/hw/grlib_irqmp.c
@@ -345,7 +345,7 @@ static int grlib_irqmp_init(SysBusDevice *dev)
grlib_irqmp_write,
irqmp, DEVICE_NATIVE_ENDIAN);
- irqmp->state = qemu_mallocz(sizeof *irqmp->state);
+ irqmp->state = g_malloc0(sizeof *irqmp->state);
if (irqmp_regs < 0) {
return -1;