qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] virtio-rng: Fix memory leaks in virtio_rng_device_realize
@ 2014-07-29 23:28 John Snow
  2014-07-29 23:28 ` [Qemu-devel] [PATCH 1/2] virtio-rng: Move error-checking forward to prevent memory leak John Snow
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: John Snow @ 2014-07-29 23:28 UTC (permalink / raw)
  To: qemu-devel; +Cc: amit.shah, jsnow, armbru, stefanha, lcapitulino

My previous commit, 713e8a10, did not address the fact that
the error checking pathways do not attempt to call
virtio_cleanup and thus can leak memory in hotplug scenarios.

This patchset shuffles around the error checking so it does not
need to perform said cleanup, and changes the error functions
from error_set to error_setg.

John Snow (2):
  virtio-rng: Move error-checking forward to prevent memory leak
  virtio-rng: replace error_set calls with error_setg

 hw/virtio/virtio-rng.c | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

-- 
1.9.3

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

end of thread, other threads:[~2014-08-01  5:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-29 23:28 [Qemu-devel] [PATCH 0/2] virtio-rng: Fix memory leaks in virtio_rng_device_realize John Snow
2014-07-29 23:28 ` [Qemu-devel] [PATCH 1/2] virtio-rng: Move error-checking forward to prevent memory leak John Snow
2014-07-29 23:28 ` [Qemu-devel] [PATCH 2/2] virtio-rng: replace error_set calls with error_setg John Snow
2014-07-30  5:57 ` [Qemu-devel] [PATCH 0/2] virtio-rng: Fix memory leaks in virtio_rng_device_realize Markus Armbruster
2014-07-30 15:26 ` Stefan Hajnoczi
2014-08-01  5:09 ` Amit Shah

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).