Patchwork [6/7] migration: If there is one error, it makes no sense to continue

login
register
mail settings
Submitter Juan Quintela
Date Sept. 20, 2011, 1:24 p.m.
Message ID <bdd840b2363ba28e2ddaa248759c275c919dbbd2.1316524908.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/115548/
State New
Headers show

Comments

Juan Quintela - Sept. 20, 2011, 1:24 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 buffered_file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/buffered_file.c b/buffered_file.c
index 5ba3d19..10d14f9 100644
--- a/buffered_file.c
+++ b/buffered_file.c
@@ -197,7 +197,7 @@  static int buffered_rate_limit(void *opaque)
     QEMUFileBuffered *s = opaque;

     if (s->has_error)
-        return 0;
+        return -1;

     if (s->freeze_output)
         return 1;