summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorStefan Hajnoczi2016-09-21 17:52:21 +0200
committerMichael S. Tsirkin2016-09-23 18:03:55 +0200
commitec55da192403e4a1e05f767c8762273d43ea7da4 (patch)
tree29f5bf0e96631a8b1d84a666427fecd85659ce6b /include/exec
parentvirtio: migrate vdev->broken flag (diff)
downloadqemu-ec55da192403e4a1e05f767c8762273d43ea7da4.tar.gz
qemu-ec55da192403e4a1e05f767c8762273d43ea7da4.tar.xz
qemu-ec55da192403e4a1e05f767c8762273d43ea7da4.zip
virtio: handle virtqueue_map_desc() errors
Errors can occur during virtqueue_pop(), especially in virtqueue_map_desc(). In order to handle this we must unmap iov[] before returning NULL. The caller will consider the virtqueue empty and the virtio_error() call will have marked the device broken. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions