]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration/colo: fix use after free of local_err
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 24 Mar 2020 15:36:28 +0000 (18:36 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 22 Jun 2020 17:52:16 +0000 (12:52 -0500)
commit09397e965739bd7da25bf1739a89fe2f245e8446
tree837192ade96ef114e3451eb533d7b80301c4f699
parent674d3822250a8830fb8e9720ce499f2e8cef6a88
migration/colo: fix use after free of local_err

local_err is used again in secondary_vm_do_failover() after
replication_stop_all(), so we must zero it. Otherwise try to set
non-NULL local_err will crash.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200324153630.11882-5-vsementsov@virtuozzo.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
(cherry picked from commit 27d07fcfa70c3afa0664288cbce5334ed9595a3a)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
migration/colo.c