On Wed, 21 Sep 2016 16:52:21 +0100 Stefan Hajnoczi <stefa...@redhat.com> wrote:
> 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 <stefa...@redhat.com> > --- > hw/virtio/virtio.c | 74 > ++++++++++++++++++++++++++++++++++++++++-------------- > 1 file changed, 55 insertions(+), 19 deletions(-) Reviewed-by: Cornelia Huck <cornelia.h...@de.ibm.com>