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: 0.10.0-0sb10~1363 X-Git-Url: http://git.maemo.org/git/?p=qemu;a=commitdiff_plain;h=d02f7094b9b98b45fb129f8c9dcf10c70b5c93b7 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 c15db9a..8b7909a 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 */