summary refs log tree commit diff stats
path: root/net/socket.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2016-08-15 13:54:16 +0100
committerMichael S. Tsirkin <mst@redhat.com>2016-08-23 19:20:24 +0300
commit58a83c61496eeb0d31571a07a51bc1947e3379ac (patch)
treeed98b38e087ad78bc1dad8162a75457c501b346f /net/socket.c
parentbccdef6b1a204db0f41ffb6e24ce373e4d7890d4 (diff)
downloadfocaccia-qemu-58a83c61496eeb0d31571a07a51bc1947e3379ac.tar.gz
focaccia-qemu-58a83c61496eeb0d31571a07a51bc1947e3379ac.zip
virtio: decrement vq->inuse in virtqueue_discard()
virtqueue_discard() moves vq->last_avail_idx back so the element can be
popped again.  It's necessary to decrement vq->inuse to avoid "leaking"
the element count.

Cc: qemu-stable@nongnu.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions