projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aee4be
)
savevm: make qemu_fill_buffer() be consistent
author
Juan Quintela
<quintela@redhat.com>
Wed, 29 Aug 2012 17:36:26 +0000
(19:36 +0200)
committer
Juan Quintela
<quintela@redhat.com>
Wed, 17 Oct 2012 16:34:59 +0000
(18:34 +0200)
It was setting last_error directly once, and with the helper the other time.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
savevm.c
patch
|
blob
|
history
diff --git
a/savevm.c
b/savevm.c
index 32fe7a20675310204fe23978529cf7c7761ab550..943d100e184b5037354efb64fdda84868311270b 100644
(file)
--- a/
savevm.c
+++ b/
savevm.c
@@
-501,7
+501,7
@@
static void qemu_fill_buffer(QEMUFile *f)
f->buf_size += len;
f->buf_offset += len;
} else if (len == 0) {
-
f->last_error = -EIO
;
+
qemu_file_set_error(f, -EIO)
;
} else if (len != -EAGAIN)
qemu_file_set_error(f, len);
}