]> git.proxmox.com Git - mirror_qemu.git/commitdiff
migration: Fix block migration flag case
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 16 Mar 2018 20:21:14 +0000 (20:21 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 23 Mar 2018 18:24:11 +0000 (18:24 +0000)
Fix the case where when a migration with a bad protocol is tried,
we leave the block migration capability set.

(This is a cut down version of my 'migration: Fix block failure cases'
where it's other case was fixed by Peter's dd0ee30caeebbd )

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20180316202114.32345-1-dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/migration.c

index fc629e5965fd19dd212a22f2fc54fbd5edf7b192..52a5092add6fdbba5b6508f41b6d73402bf4c9b8 100644 (file)
@@ -1428,6 +1428,7 @@ void qmp_migrate(const char *uri, bool has_blk, bool blk,
                    "a valid migration protocol");
         migrate_set_state(&s->state, MIGRATION_STATUS_SETUP,
                           MIGRATION_STATUS_FAILED);
+        block_cleanup_parameters(s);
         return;
     }