From: Fabiano Rosas Date: Fri, 23 Jan 2026 14:16:32 +0000 (-0300) Subject: migration: Fix state change at migration_channel_process_incoming X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44fe18201cf8d4eeab79502d56b6958e84524384;p=thirdparty%2Fqemu.git migration: Fix state change at migration_channel_process_incoming When the incoming migration fails during the channel connection phase, the state transition to FAILED is currently being done in the MigrationState->state, but the MigrationIncomingState->state is the one that should be used. Reviewed-by: Peter Xu Reviewed-by: Prasad Pandit Link: https://lore.kernel.org/qemu-devel/20260123141656.6765-3-farosas@suse.de Signed-off-by: Fabiano Rosas --- diff --git a/migration/channel.c b/migration/channel.c index 92435fa7f7..4768c71455 100644 --- a/migration/channel.c +++ b/migration/channel.c @@ -48,7 +48,7 @@ void migration_channel_process_incoming(QIOChannel *ioc) if (local_err) { error_report_err(local_err); - migrate_set_state(&s->state, s->state, MIGRATION_STATUS_FAILED); + migrate_set_state(&mis->state, mis->state, MIGRATION_STATUS_FAILED); if (mis->exit_on_error) { exit(EXIT_FAILURE); }