aboutsummaryrefslogtreecommitdiff
path: root/pc-bios/Makefile
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 /pc-bios/Makefile
parent791b1daf724ea835a32e90b2b15df1e20dae6f57 (diff)
downloadqemu-ec55da192403e4a1e05f767c8762273d43ea7da4.zip
qemu-ec55da192403e4a1e05f767c8762273d43ea7da4.tar.gz
qemu-ec55da192403e4a1e05f767c8762273d43ea7da4.tar.bz2
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 'pc-bios/Makefile')
0 files changed, 0 insertions, 0 deletions