diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2016-09-21 16:52:22 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-09-23 19:03:56 +0300 |
commit | d65abf85e7e5fce31905eaea322ef2ea26e5f2db (patch) | |
tree | 228d3597cc24c38537e417ae27b90990f8aacdd3 /spice-qemu-char.c | |
parent | ec55da192403e4a1e05f767c8762273d43ea7da4 (diff) | |
download | qemu-d65abf85e7e5fce31905eaea322ef2ea26e5f2db.zip qemu-d65abf85e7e5fce31905eaea322ef2ea26e5f2db.tar.gz qemu-d65abf85e7e5fce31905eaea322ef2ea26e5f2db.tar.bz2 |
virtio: handle virtqueue_get_avail_bytes() errors
If the vring is invalid, tell the caller no bytes are available and mark
the device broken.
Signed-off-by: Stefan Hajnoczi <stefanha@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>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'spice-qemu-char.c')
0 files changed, 0 insertions, 0 deletions