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

login
register
mail settings
Submitter Juan Quintela
Date Feb. 23, 2011, 9:47 p.m.
Message ID <5539bbd83a6658ec015c93623f8c5b5707bca7a1.1298492768.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/84251/
State New
Headers show

Comments

Juan Quintela - Feb. 23, 2011, 9:47 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 8435a31..3c917ff 100644
--- a/buffered_file.c
+++ b/buffered_file.c
@@ -195,7 +195,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;