diff mbox

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

Message ID 5539bbd83a6658ec015c93623f8c5b5707bca7a1.1298492768.git.quintela@redhat.com
State New
Headers show

Commit Message

Juan Quintela Feb. 23, 2011, 9:47 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 buffered_file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

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;