aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Chen <chen.zhang@intel.com>2021-12-31 13:59:33 +0800
committerJuan Quintela <quintela@redhat.com>2022-01-28 15:38:23 +0100
commit444252b96a63fef6537af0a43665905b48816927 (patch)
treeb45d8edb8ce0b1440ddf6123bb4565ec74693e53
parent17e313406126125036191f11e9c70298be34c987 (diff)
downloadqemu-444252b96a63fef6537af0a43665905b48816927.zip
qemu-444252b96a63fef6537af0a43665905b48816927.tar.gz
qemu-444252b96a63fef6537af0a43665905b48816927.tar.bz2
migration/migration.c: Add missed default error handler for migration state
In the migration_completion() no other status is expected, for example MIGRATION_STATUS_CANCELLING, MIGRATION_STATUS_CANCELLED, etc. Signed-off-by: Zhang Chen <chen.zhang@intel.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
-rw-r--r--migration/migration.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/migration.c b/migration/migration.c
index 0652165..2afa77d 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -3205,7 +3205,7 @@ static void migration_completion(MigrationState *s)
qemu_mutex_unlock_iothread();
trace_migration_completion_postcopy_end_after_complete();
- } else if (s->state == MIGRATION_STATUS_CANCELLING) {
+ } else {
goto fail;
}