Commit c77a5f2d authored by Lei Li's avatar Lei Li Committed by Juan Quintela
Browse files

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: default avatarMichael R. Hines <>
Signed-off-by: default avatarLei Li <>
Signed-off-by: default avatarJuan Quintela <>
parent 675fd0a7
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment