diff options
Diffstat (limited to 'migration/ram.c')
-rw-r--r-- | migration/ram.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/migration/ram.c b/migration/ram.c index b01a37e7ca..0047286b7e 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1112,6 +1112,7 @@ static void *multifd_send_thread(void *opaque) rcu_register_thread(); if (multifd_send_initial_packet(p, &local_err) < 0) { + ret = -1; goto out; } /* initial packet */ @@ -1179,9 +1180,7 @@ out: * who pay attention to me. */ if (ret != 0) { - if (flags & MULTIFD_FLAG_SYNC) { - qemu_sem_post(&p->sem_sync); - } + qemu_sem_post(&p->sem_sync); qemu_sem_post(&multifd_send_state->channels_ready); } |