diff options
author | Stefan Hajnoczi | 2016-09-21 17:52:25 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2016-09-23 18:03:56 +0200 |
commit | 4355c1abcaedd64a18d627284a3b7e54acb00714 (patch) | |
tree | bf94f26ae2d93b310bac84496bd550c46fe0ccb0 /hw/acpi/aml-build.c | |
parent | virtio: handle virtqueue_read_next_desc() errors (diff) | |
download | qemu-4355c1abcaedd64a18d627284a3b7e54acb00714.tar.gz qemu-4355c1abcaedd64a18d627284a3b7e54acb00714.tar.xz qemu-4355c1abcaedd64a18d627284a3b7e54acb00714.zip |
virtio: handle virtqueue_num_heads() errors
If the avail ring index is bogus virtqueue_num_heads() must return
-EINVAL.
The only caller is virtqueue_get_avail_bytes(). Return saying no bytes
are available when virtqueue_num_heads() fails.
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 'hw/acpi/aml-build.c')
0 files changed, 0 insertions, 0 deletions