summary refs log tree commit diff stats
path: root/hw/intc/omap_intc.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2016-09-21 16:52:21 +0100
committerMichael S. Tsirkin <mst@redhat.com>2016-09-23 19:03:55 +0300
commitec55da192403e4a1e05f767c8762273d43ea7da4 (patch)
tree29f5bf0e96631a8b1d84a666427fecd85659ce6b /hw/intc/omap_intc.c
parent791b1daf724ea835a32e90b2b15df1e20dae6f57 (diff)
downloadfocaccia-qemu-ec55da192403e4a1e05f767c8762273d43ea7da4.tar.gz
focaccia-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 'hw/intc/omap_intc.c')
0 files changed, 0 insertions, 0 deletions