Make sure not to fall through on error in loadvm
This is from the KVM tree Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
aff427a1ca
commit
d02f7094b9
1
savevm.c
1
savevm.c
@ -855,6 +855,7 @@ static int qemu_loadvm_state_v2(QEMUFile *f)
|
|||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
fprintf(stderr, "qemu: warning: error while loading state for instance 0x%x of device '%s'\n",
|
fprintf(stderr, "qemu: warning: error while loading state for instance 0x%x of device '%s'\n",
|
||||||
instance_id, idstr);
|
instance_id, idstr);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* always seek to exact end of record */
|
/* always seek to exact end of record */
|
||||||
|
Loading…
Reference in New Issue
Block a user