diff options
| author | Stefan Hajnoczi | 2016-09-21 17:52:21 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2016-09-23 18:03:55 +0200 |
| commit | ec55da192403e4a1e05f767c8762273d43ea7da4 (patch) | |
| tree | 29f5bf0e96631a8b1d84a666427fecd85659ce6b /include | |
| parent | virtio: migrate vdev->broken flag (diff) | |
| download | qemu-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')
0 files changed, 0 insertions, 0 deletions
