From: Anthony Liguori Date: Fri, 1 May 2009 14:36:03 +0000 (-0500) Subject: Make sure not to fall through on error in loadvm X-Git-Tag: v0.10.3~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2031cfc4ea3be02f752a14e576e93dcd265565a2;p=thirdparty%2Fqemu.git Make sure not to fall through on error in loadvm This is from the KVM tree Signed-off-by: Anthony Liguori --- diff --git a/savevm.c b/savevm.c index e3e853cf221..cd833504e2f 100644 --- a/savevm.c +++ b/savevm.c @@ -851,6 +851,7 @@ static int qemu_loadvm_state_v2(QEMUFile *f) if (ret < 0) { fprintf(stderr, "qemu: warning: error while loading state for instance 0x%x of device '%s'\n", instance_id, idstr); + return ret; } } /* always seek to exact end of record */