Message ID | 20230811150836.2895-6-farosas@suse.de |
---|---|
State | New |
Headers | show |
Series | Fix segfault on migration return path | expand |
On Fri, Aug 11, 2023 at 12:08:31PM -0300, Fabiano Rosas wrote: > This file is owned by the return path thread which is already doing > cleanup. > > Signed-off-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Peter Xu <peterx@redhat.com>
diff --git a/migration/migration.c b/migration/migration.c index 5e6a766235..195726eb4a 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1177,12 +1177,6 @@ static void migrate_fd_cleanup(MigrationState *s) qemu_fclose(tmp); } - if (s->postcopy_qemufile_src) { - migration_ioc_unregister_yank_from_file(s->postcopy_qemufile_src); - qemu_fclose(s->postcopy_qemufile_src); - s->postcopy_qemufile_src = NULL; - } - assert(!migration_is_active(s)); if (s->state == MIGRATION_STATUS_CANCELLING) {
This file is owned by the return path thread which is already doing cleanup. Signed-off-by: Fabiano Rosas <farosas@suse.de> --- migration/migration.c | 6 ------ 1 file changed, 6 deletions(-)