projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
675fd0a
)
savevm: fix wrong initialization by ram_control_load_hook
author
Lei Li
<lilei@linux.vnet.ibm.com>
Wed, 4 Sep 2013 09:02:35 +0000
(17:02 +0800)
committer
Juan Quintela
<quintela@trasno.org>
Tue, 24 Sep 2013 11:22:08 +0000
(13:22 +0200)
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>
savevm.c
patch
|
blob
|
history
diff --git
a/savevm.c
b/savevm.c
index a834c6f69ac7050761fa52781f21e9bc998b49c4..2f631d4045cd45ce03b639897dafe459cf3cafd9 100644
(file)
--- a/
savevm.c
+++ b/
savevm.c
@@
-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);