From 781c117f3758bdb21e982d2aebba81febceccfe5 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 10 Dec 2013 13:26:59 +0100 Subject: vring: factor common code for error exits Signed-off-by: Paolo Bonzini Signed-off-by: Stefan Hajnoczi --- hw/block/dataplane/virtio-blk.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/block') diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c index 1e57f3aabd..2b4a773f13 100644 --- a/hw/block/dataplane/virtio-blk.c +++ b/hw/block/dataplane/virtio-blk.c @@ -308,6 +308,7 @@ static void handle_notify(EventNotifier *e) if (process_request(&s->ioqueue, iov, out_num, in_num, head) < 0) { vring_set_broken(&s->vring); + ret = -EFAULT; break; } iov += out_num + in_num; -- cgit v1.2.1