Patchwork [2/5] Don't call vm_start() if there was an error loading

login
register
mail settings
Submitter Juan Quintela
Date Aug. 18, 2009, 1:34 p.m.
Message ID <9db03e0798acc52ff0f566f600de7657c9ba2242.1250601335.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/31557/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 18, 2009, 1:34 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 savevm.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/savevm.c b/savevm.c
index 570377f..7779c0e 100644
--- a/savevm.c
+++ b/savevm.c
@@ -1211,6 +1211,7 @@  void do_loadvm(Monitor *mon, const char *name)
     qemu_fclose(f);
     if (ret < 0) {
         monitor_printf(mon, "Error %d while loading VM state\n", ret);
+        return;
     }
  the_end:
     if (saved_vm_running)