qemu-irix/hw/timer
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 timer/arm_mptimer: Build arm_mptimer only once 2013-07-09 21:33:02 +02:00
arm_mptimer.c a9mpcore: Embed ARMMPTimerState 2013-11-05 17:47:29 +01:00
arm_timer.c hw/timer/arm_timer: Avoid array overrun for bad addresses 2014-02-27 09:37:58 -06:00
cadence_ttc.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
ds1338.c
etraxfs_timer.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
exynos4210_mct.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
exynos4210_pwm.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
exynos4210_rtc.c misc: Fix some typos in names and comments 2013-09-01 18:59:24 +04:00
grlib_gptimer.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
hpet.c hpet: fix buffer overrun on invalid state load 2014-06-26 14:01:11 -05:00
i8254.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
i8254_common.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
imx_epit.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
imx_gpt.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
lm32_timer.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
m48t59.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
mc146818rtc.c rtc: remove dead SQW IRQ code 2013-11-05 20:04:03 -08:00
milkymist-sysctl.c milkymist-sysctl: QOM cast cleanup 2013-07-29 21:07:01 +02:00
omap_gptimer.c hw: Fix qemu_allocate_irqs() leaks 2014-07-15 19:28:02 -05:00
omap_synctimer.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
pl031.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
puv3_ost.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
pxa2xx_timer.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
sh_timer.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
slavio_timer.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
tusb6010.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
twl92230.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
xilinx_timer.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00