aboutsummaryrefslogtreecommitdiff
path: root/savevm.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-08-29 19:36:26 +0200
committerJuan Quintela <quintela@redhat.com>2012-10-17 18:34:59 +0200
commit02c4a0511bc58b005511c94055a55b1e19c6be71 (patch)
tree9a22cf461b6f7ae496bda0aef42aa53ccae54413 /savevm.c
parent3aee4be1de440de08ef68b936e51e028a9f6f6ab (diff)
savevm: make qemu_fill_buffer() be consistent
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>
Diffstat (limited to 'savevm.c')
-rw-r--r--savevm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/savevm.c b/savevm.c
index 32fe7a2067..943d100e18 100644
--- 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);
}