]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
Make sure not to fall through on error in loadvm
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 1 May 2009 14:36:03 +0000 (09:36 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 1 May 2009 15:13:32 +0000 (10:13 -0500)
This is from the KVM tree

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
savevm.c

index e3e853cf2213958a2c5812abafa085853b6f2b92..cd833504e2f6055b893d722ce7b2af68f6378e3c 100644 (file)
--- 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 */