]> git.proxmox.com Git - mirror_qemu.git/commit
block/mirror: check backing in bdrv_mirror_top_refresh_filename
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 28 Sep 2017 12:03:00 +0000 (15:03 +0300)
committerMax Reitz <mreitz@redhat.com>
Fri, 6 Oct 2017 14:30:47 +0000 (16:30 +0200)
commit18775ff32697ab6e1fd47989673bf1de54d0d942
tree0f8418d3f464695c0934400ad783334325d133b8
parentd67a6b09b4ac27a4fac07544ded79b40d2717a0d
block/mirror: check backing in bdrv_mirror_top_refresh_filename

Backing may be zero after failed bdrv_attach_child in
bdrv_set_backing_hd, which leads to SIGSEGV.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20170928120300.58164-1-vsementsov@virtuozzo.com
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/mirror.c