summaryrefslogtreecommitdiff
path: root/savevm.c
diff options
context:
space:
mode:
Diffstat (limited to 'savevm.c')
-rw-r--r--savevm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/savevm.c b/savevm.c
index c15db9ae2d..8b7909a384 100644
--- a/savevm.c
+++ b/savevm.c
@@ -855,6 +855,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 */