summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKevin Wolf2015-06-16 10:58:20 +0200
committerKevin Wolf2015-07-14 17:15:23 +0200
commit9a7dedbc43c7c400663d2876a8ccb6d942a1429a (patch)
tree5bddec89d59df8211f438fa49ef2256bd617d423 /include
parentblock: Introduce bdrv_unref_child() (diff)
downloadqemu-9a7dedbc43c7c400663d2876a8ccb6d942a1429a.tar.gz
qemu-9a7dedbc43c7c400663d2876a8ccb6d942a1429a.tar.xz
qemu-9a7dedbc43c7c400663d2876a8ccb6d942a1429a.zip
block: Reorder cleanups in bdrv_close()
Block drivers may still want to access their child nodes in their .bdrv_close handler. If they unref and/or detach a child by themselves, this should not result in a double free. There is additional code for backing files, which are just a special case of child nodes. The same applies for them. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions