diff options
author | Vladimir Sementsov-Ogievskiy | 2020-03-24 16:36:26 +0100 |
---|---|---|
committer | Max Reitz | 2020-03-26 14:44:32 +0100 |
commit | 66c8672d242e9a494216237648b7787649c2c970 (patch) | |
tree | 637753bcc6ef4f1d1eef69ee39b596edd809aa86 /include/block | |
parent | Merge remote-tracking branch 'remotes/dgilbert/tags/pull-migration-20200325b'... (diff) | |
download | qemu-66c8672d242e9a494216237648b7787649c2c970.tar.gz qemu-66c8672d242e9a494216237648b7787649c2c970.tar.xz qemu-66c8672d242e9a494216237648b7787649c2c970.zip |
block/mirror: fix use after free of local_err
local_err is used again in mirror_exit_common() after
bdrv_set_backing_hd(), 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-3-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block')
0 files changed, 0 insertions, 0 deletions