OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e97305
)
qemu-file: Only set last_error if it is not already set
author
Juan Quintela
<quintela@redhat.com>
Mon, 14 Jan 2013 12:36:28 +0000
(13:36 +0100)
committer
Juan Quintela
<quintela@redhat.com>
Thu, 17 Jan 2013 12:54:16 +0000
(13:54 +0100)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
savevm.c
patch
|
blob
|
history
diff --git
a/savevm.c
b/savevm.c
index
4e970ca
..
611e997
100644
(file)
--- a/
savevm.c
+++ b/
savevm.c
@@
-419,7
+419,9
@@
int qemu_file_get_error(QEMUFile *f)
static void qemu_file_set_error(QEMUFile *f, int ret)
{
- f->last_error = ret;
+ if (f->last_error == 0) {
+ f->last_error = ret;
+ }
}
/** Flushes QEMUFile buffer