Stefan Hajnoczi ec55da1924 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>
2016-09-23 19:03:55 +03:00
..
2016-09-13 18:12:34 +03:00
2016-06-17 16:33:48 +10:00
2016-09-22 18:13:08 +01:00
2016-06-14 15:59:13 +01:00
2016-09-08 18:05:21 +04:00
2016-09-23 12:39:07 +10:00
2016-05-18 15:04:27 +03:00
2016-09-23 11:42:52 +08:00
2016-09-08 18:05:21 +04:00
2016-09-23 14:26:12 +01:00
2016-09-23 11:42:52 +08:00
2016-07-29 00:07:09 +03:00
2016-01-29 15:07:25 +00:00
2016-09-23 14:26:12 +01:00
2016-09-19 12:41:28 +01:00
2016-09-22 18:13:08 +01:00
2016-09-15 15:32:22 +03:00
2016-09-23 11:42:52 +08:00
2016-09-15 15:32:22 +03:00
2016-09-23 11:42:52 +08:00
2015-12-22 18:39:19 +02:00