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

Submitted by Juan Quintela on Aug. 18, 2009, 1:34 p.m.

Details

Message ID 9db03e0798acc52ff0f566f600de7657c9ba2242.1250601335.git.quintela@redhat.com
State Superseded
Headers show

Commit Message

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 hide | download patch | download mbox

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)