diff options
| author | Lei Li | 2013-09-04 11:02:35 +0200 |
|---|---|---|
| committer | Juan Quintela | 2013-09-24 13:22:08 +0200 |
| commit | c77a5f2daa1ccbd825d59b95c70207c0a196bb94 (patch) | |
| tree | 43081ebf9d60eff76ee85a740a4d91b0d2f8ead6 | |
| parent | savevm: add comments for qemu_file_get_error() (diff) | |
| download | qemu-c77a5f2daa1ccbd825d59b95c70207c0a196bb94.tar.gz qemu-c77a5f2daa1ccbd825d59b95c70207c0a196bb94.tar.xz qemu-c77a5f2daa1ccbd825d59b95c70207c0a196bb94.zip | |
savevm: fix wrong initialization by ram_control_load_hook
It should set negative error value rather than 0 in QEMUFile
if there has been an error.
Reviewed-by: Michael R. Hines <mrhines@us.ibm.com>
Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
| -rw-r--r-- | savevm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -649,7 +649,7 @@ void ram_control_after_iterate(QEMUFile *f, uint64_t flags) void ram_control_load_hook(QEMUFile *f, uint64_t flags) { - int ret = 0; + int ret = -EINVAL; if (f->ops->hook_ram_load) { ret = f->ops->hook_ram_load(f, f->opaque, flags); |
