summaryrefslogtreecommitdiffstats
path: root/hw/acpi/aml-build.c
diff options
context:
space:
mode:
authorStefan Hajnoczi2016-09-21 17:52:25 +0200
committerMichael S. Tsirkin2016-09-23 18:03:56 +0200
commit4355c1abcaedd64a18d627284a3b7e54acb00714 (patch)
treebf94f26ae2d93b310bac84496bd550c46fe0ccb0 /hw/acpi/aml-build.c
parentvirtio: handle virtqueue_read_next_desc() errors (diff)
downloadqemu-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