summary refs log tree commit diff stats
path: root/util/qemu-openpty.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2020-07-13 14:36:12 +0100
committerPeter Maydell <peter.maydell@linaro.org>2020-07-13 14:36:12 +0100
commitad938fc1d53c99b264ecfc81291a4814204ff3dd (patch)
tree2ccbdb19bbc3cb03906e0d938890c3df74ace204 /util/qemu-openpty.c
parentc1abd462d99d8d94dd2c94eb9bb33108859407b2 (diff)
downloadfocaccia-qemu-ad938fc1d53c99b264ecfc81291a4814204ff3dd.tar.gz
focaccia-qemu-ad938fc1d53c99b264ecfc81291a4814204ff3dd.zip
hw/arm/palm.c: Encapsulate misc GPIO handling in a device
Replace the free-floating set of IRQs and palmte_onoff_gpios()
function with a simple QOM device that encapsulates this
behaviour.

This fixes Coverity issue CID 1421944, which points out that
the memory returned by qemu_allocate_irqs() is leaked.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200628214230.2592-3-peter.maydell@linaro.org
Diffstat (limited to 'util/qemu-openpty.c')
0 files changed, 0 insertions, 0 deletions