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>
This commit is contained in:
Anthony Liguori 2009-05-01 09:36:03 -05:00
parent aff427a1ca
commit d02f7094b9

View File

@ -855,6 +855,7 @@ static int qemu_loadvm_state_v2(QEMUFile *f)
if (ret < 0) { if (ret < 0) {
fprintf(stderr, "qemu: warning: error while loading state for instance 0x%x of device '%s'\n", fprintf(stderr, "qemu: warning: error while loading state for instance 0x%x of device '%s'\n",
instance_id, idstr); instance_id, idstr);
return ret;
} }
} }
/* always seek to exact end of record */ /* always seek to exact end of record */