diff options
Diffstat (limited to 'migration/channel.c')
-rw-r--r-- | migration/channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/migration/channel.c b/migration/channel.c index c5eaf0f..716192b 100644 --- a/migration/channel.c +++ b/migration/channel.c @@ -74,8 +74,9 @@ void migration_channel_connect(MigrationState *s, } else { QEMUFile *f = qemu_fopen_channel_output(ioc); + qemu_mutex_lock(&s->qemu_file_lock); s->to_dst_file = f; - + qemu_mutex_unlock(&s->qemu_file_lock); } } migrate_fd_connect(s, error); |