aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2009-05-01 09:36:03 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-01 10:13:32 -0500
commit2031cfc4ea3be02f752a14e576e93dcd265565a2 (patch)
tree271e5f7d28d16f85c2d57daf4fc336d8899ce650
parent260437cba33a283f92d8eecd739453eecc15d204 (diff)
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>
-rw-r--r--savevm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/savevm.c b/savevm.c
index e3e853cf22..cd833504e2 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 */