mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
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:
parent
4d684832e5
commit
781c117f37
2 changed files with 22 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue