diff options
author | Paolo Bonzini | 2013-12-10 13:26:59 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2013-12-20 09:11:57 +0100 |
commit | 781c117f3758bdb21e982d2aebba81febceccfe5 (patch) | |
tree | 32679852eae31ecb454478d7d43c9abade95947f /hw/block/dataplane | |
parent | vring: create a common function to parse descriptors (diff) | |
download | qemu-781c117f3758bdb21e982d2aebba81febceccfe5.tar.gz qemu-781c117f3758bdb21e982d2aebba81febceccfe5.tar.xz qemu-781c117f3758bdb21e982d2aebba81febceccfe5.zip |
vring: factor common code for error exits
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/block/dataplane')
-rw-r--r-- | hw/block/dataplane/virtio-blk.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |