Commit 304e3a7c authored by Yoshiaki Tamura's avatar Yoshiaki Tamura Committed by Anthony Liguori

migration-tcp: call migrate_fd_error() instead of close() and free().

This patch fixes the following error report.  When changing
migration-tcp.c to call migrate_fd_error() instead of close() and
free() by itself, monitor is resumed, and returns allocated mig_state
is set to current_migration in migration.c allows us to print "info
Reported-by: default avatarCole Robinson <>
Signed-off-by: default avatarYoshiaki Tamura <>
Signed-off-by: default avatarAnthony Liguori <>
parent faa1f8dd
......@@ -128,9 +128,7 @@ MigrationState *tcp_start_outgoing_migration(Monitor *mon,
if (ret < 0 && ret != -EINPROGRESS && ret != -EWOULDBLOCK) {
DPRINTF("connect failed\n");
return NULL;
} else if (ret >= 0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment