diff options
author | Wei Yang <richardw.yang@linux.intel.com> | 2019-07-22 15:53:38 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2019-08-14 17:33:14 +0100 |
commit | be4a1a1b6f4559c9b1f97aac31e0fb01a1fbe48e (patch) | |
tree | fdfbf777f5e704fdb6475754cd4cff62ae42d8ef /migration/ram.c | |
parent | 4695ce3fdcb636384eac743cee9a1b6375ad0ccb (diff) |
migration: return -EINVAL directly when version_id mismatch
It is not reasonable to continue when version_id mismatch.
Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Message-Id: <20190722075339.25121-2-richardw.yang@linux.intel.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/ram.c')
-rw-r--r-- | migration/ram.c | 2 |
1 files changed, 1 insertions, 1 deletions
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()) { |