diff options
author | 2019-03-03 22:50:15 +0800 | |
---|---|---|
committer | 2019-03-06 10:49:18 +0000 | |
commit | b8b5734b092baf3c53f3f117595704ffe9469a75 (patch) | |
tree | f0e9807b212090ef70ed50c4eae53c7b3c5d8fcf /migration/colo.c | |
parent | virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT (diff) | |
download | qemu-b8b5734b092baf3c53f3f117595704ffe9469a75.tar.xz qemu-b8b5734b092baf3c53f3f117595704ffe9469a75.zip |
Migration/colo.c: Fix double close bug when occur COLO failover
In migration_incoming_state_destroy(void) will check the mis->to_src_file
to double close the mis->to_src_file when occur COLO failover.
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190303145021.2962-2-chen.zhang@intel.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/colo.c')
-rw-r--r-- | migration/colo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/colo.c b/migration/colo.c index 398b239d1c..a916dc178c 100644 --- a/migration/colo.c +++ b/migration/colo.c @@ -872,6 +872,7 @@ out: /* Must be called after failover BH is completed */ if (mis->to_src_file) { qemu_fclose(mis->to_src_file); + mis->to_src_file = NULL; } migration_incoming_disable_colo(); |