diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2016-08-15 13:54:16 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-08-23 19:20:24 +0300 |
commit | 58a83c61496eeb0d31571a07a51bc1947e3379ac (patch) | |
tree | ed98b38e087ad78bc1dad8162a75457c501b346f /target-s390x | |
parent | bccdef6b1a204db0f41ffb6e24ce373e4d7890d4 (diff) |
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 'target-s390x')
0 files changed, 0 insertions, 0 deletions