xemu/hw/sh4
Andreas Färber 53e4895c98 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-07-15 19:28:02 -05:00
..
Makefile.objs hw: move interrupt controllers to hw/intc/, configure with default-configs/ 2013-04-08 18:13:16 +02:00
r2d.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
sh7750.c hw: Fix qemu_allocate_irqs() leaks 2014-07-15 19:28:02 -05:00
sh7750_regnames.c hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
sh7750_regnames.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
sh7750_regs.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
sh_pci.c sh4: unbreak r2d 2013-07-25 08:12:27 -05:00
shix.c shix: Don't require firmware presence for qtest 2013-11-05 17:47:29 +01:00