Commit d02f7094b9b98b45fb129f8c9dcf10c70b5c93b7
1 parent
aff427a1
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>
Showing
1 changed file
with
1 additions
and
0 deletions
savevm.c
... | ... | @@ -855,6 +855,7 @@ static int qemu_loadvm_state_v2(QEMUFile *f) |
855 | 855 | if (ret < 0) { |
856 | 856 | fprintf(stderr, "qemu: warning: error while loading state for instance 0x%x of device '%s'\n", |
857 | 857 | instance_id, idstr); |
858 | + return ret; | |
858 | 859 | } |
859 | 860 | } |
860 | 861 | /* always seek to exact end of record */ | ... | ... |