qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] tosa: fix Coverity CID 1421929
@ 2020-06-28 20:37 Peter Maydell
  2020-06-28 20:37 ` [PATCH 1/2] hw/arm/tosa.c: Detabify Peter Maydell
  2020-06-28 20:37 ` [PATCH 2/2] hw/arm/tosa: Encapsulate misc GPIO handling in a device Peter Maydell
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Maydell @ 2020-06-28 20:37 UTC (permalink / raw)
  To: qemu-arm, qemu-devel

This series fixes Coverity issue CID 1421929, which pointed out that
the 'outsignals' in tosa_gpio_setup() were leaked, in the same way
that the equivalent bug for spitz was fixed in the series I posted
earlier: instead of using qemu_allocate_irqs() we create a device
to encapsulate the handling of the misc GPIO lines on this board.
This is simpler than the spitz case because for tosa we don't need
to work with any of the other devices on the board, so the misc-gpio
device can be simple and self-contained.

As with spitz, I started out by tidying up some stray hard-tabs.

thanks
-- PMM

Peter Maydell (2):
  hw/arm/tosa.c: Detabify
  hw/arm/tosa: Encapsulate misc GPIO handling in a device

 hw/arm/tosa.c | 132 ++++++++++++++++++++++++++++++++------------------
 1 file changed, 86 insertions(+), 46 deletions(-)

-- 
2.20.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-07-13 10:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-28 20:37 [PATCH 0/2] tosa: fix Coverity CID 1421929 Peter Maydell
2020-06-28 20:37 ` [PATCH 1/2] hw/arm/tosa.c: Detabify Peter Maydell
2020-07-01  7:24   ` Philippe Mathieu-Daudé
2020-06-28 20:37 ` [PATCH 2/2] hw/arm/tosa: Encapsulate misc GPIO handling in a device Peter Maydell
2020-06-29  9:39   ` Philippe Mathieu-Daudé
2020-06-29 12:14     ` Peter Maydell
2020-07-13 10:55       ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).