vring: factor common code for error exits

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
Paolo Bonzini 2013-12-10 13:26:59 +01:00 committed by Stefan Hajnoczi
parent 4d684832e5
commit 781c117f37
2 changed files with 22 additions and 13 deletions

View file

@ -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;