summary refs log tree commit diff stats
path: root/gdbstub/system.c
diff options
context:
space:
mode:
authorFiona Ebner <f.ebner@proxmox.com>2024-03-22 10:50:08 +0100
committerKevin Wolf <kwolf@redhat.com>2024-03-26 14:21:26 +0100
commitbac09b093ebbb79e6a7444c7b979c32ca5540132 (patch)
treeeb59a2b371af5aafe652e59401abd5551cd1d683 /gdbstub/system.c
parentf6d38c9f6dae6fce99dcaf6ca16a1fe5b5e19c4c (diff)
downloadfocaccia-qemu-bac09b093ebbb79e6a7444c7b979c32ca5540132.tar.gz
focaccia-qemu-bac09b093ebbb79e6a7444c7b979c32ca5540132.zip
block-backend: fix edge case in bdrv_next_cleanup() where BDS associated to BB changes
Same rationale as for commit "block-backend: fix edge case in
bdrv_next() where BDS associated to BB changes". The block graph might
change between the bdrv_next() call and the bdrv_next_cleanup() call,
so it could be that the associated BDS is not the same that was
referenced previously anymore. Instead, rely on bdrv_next() to set
it->bs to the BDS it referenced and unreference that one in any case.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Message-ID: <20240322095009.346989-4-f.ebner@proxmox.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'gdbstub/system.c')
0 files changed, 0 insertions, 0 deletions