qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] virtio-input: eventq batching fixes
@ 2017-03-24 14:24 Ladi Prosek
  2017-03-24 14:24 ` [Qemu-devel] [PATCH 1/2] virtio-input: free event queue when finalizing Ladi Prosek
  2017-03-24 14:24 ` [Qemu-devel] [PATCH 2/2] virtio-input: fix eventq batching Ladi Prosek
  0 siblings, 2 replies; 3+ messages in thread
From: Ladi Prosek @ 2017-03-24 14:24 UTC (permalink / raw)
  To: qemu-devel; +Cc: kraxel

Two bugs found when reviewing the code against the candidate spec:

* memory leak: the event queue is never freed
* incorrect virtqueue check: virtqueue_get_avail_bytes does not
  guarantee number of available buffers

Ladi Prosek (2):
  virtio-input: free event queue when finalizing
  virtio-input: fix eventq batching

 hw/input/virtio-input.c          | 33 +++++++++++++++++----------------
 include/hw/virtio/virtio-input.h |  5 ++++-
 2 files changed, 21 insertions(+), 17 deletions(-)

Thanks!
Ladi

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

end of thread, other threads:[~2017-03-24 14:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-24 14:24 [Qemu-devel] [PATCH 0/2] virtio-input: eventq batching fixes Ladi Prosek
2017-03-24 14:24 ` [Qemu-devel] [PATCH 1/2] virtio-input: free event queue when finalizing Ladi Prosek
2017-03-24 14:24 ` [Qemu-devel] [PATCH 2/2] virtio-input: fix eventq batching Ladi Prosek

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