qemu-irix/hw/dma
Andreas Färber 3477445077 hw: Fix qemu_allocate_irqs() leaks
Replace qemu_allocate_irqs(foo, bar, 1)[0]
with qemu_allocate_irq(foo, bar, 0).

This avoids leaking the dereferenced qemu_irq *.

Cc: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andreas Färber <afaerber@suse.de>
[PC Changes:
 * Applied change to instance in sh4/sh7750.c
]
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Kirill Batuzov <batuzovk@ispras.ru>
[AF: Fix IRQ index in sh4/sh7750.c]
Cc: qemu-stable@nongnu.org
Signed-off-by: Andreas Färber <afaerber@suse.de>

(cherry picked from commit f3c7d0389f)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2014-08-06 11:56:14 -05:00
..
Makefile.objs hw: move DMA controllers to hw/dma/, configure with default-configs/ 2013-04-08 18:13:14 +02:00
etraxfs_dma.c memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
i8257.c memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
i82374.c qdev: Remove hex8/32/64 property types 2014-02-14 21:12:04 +01:00
omap_dma.c hw: Fix qemu_allocate_irqs() leaks 2014-08-06 11:56:14 -05:00
pl080.c exec: Make ldl_*_phys input an AddressSpace 2014-02-11 22:56:54 +10:00
pl330.c dma/pl330: implement dmaadnh instruction 2014-02-26 17:20:09 +00:00
puv3_dma.c puv3_dma: QOM cast cleanup 2013-07-29 21:06:45 +02:00
pxa2xx_dma.c pxa2xx_dma: QOM cast cleanup 2013-07-29 21:06:45 +02:00
rc4030.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
soc_dma.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
sparc32_dma.c hw: cannot_instantiate_with_device_add_yet due to pointer props 2013-12-24 17:27:17 +01:00
sun4m_iommu.c qdev: Remove hex8/32/64 property types 2014-02-14 21:12:04 +01:00
xilinx_axidma.c qom: Add check() argument to object_property_add_link() 2014-03-19 22:23:13 +01:00