qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 17/33] migration: return -EINVAL directly when versio


From: Dr. David Alan Gilbert (git)
Subject: [Qemu-devel] [PULL 17/33] migration: return -EINVAL directly when version_id mismatch
Date: Thu, 15 Aug 2019 17:34:48 +0100

From: Wei Yang <address@hidden>

It is not reasonable to continue when version_id mismatch.

Signed-off-by: Wei Yang <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Signed-off-by: Dr. David Alan Gilbert <address@hidden>
---
 migration/ram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/migration/ram.c b/migration/ram.c
index 97f241d6d9..6a75aedc91 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -4334,7 +4334,7 @@ static int ram_load(QEMUFile *f, void *opaque, int 
version_id)
     seq_iter++;
 
     if (version_id != 4) {
-        ret = -EINVAL;
+        return -EINVAL;
     }
 
     if (!migrate_use_compression()) {
-- 
2.21.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]