]> xenbits.xensource.com Git - libvirt.git/commit
qemuDomainDiskPrivateDispose: Prevent dangling 'disk' pointer in blockjob data
authorPeter Krempa <pkrempa@redhat.com>
Tue, 11 Jun 2024 13:50:52 +0000 (15:50 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 20 Jun 2024 07:52:54 +0000 (09:52 +0200)
commitb4423a753baa46993c4215a0f7480725b205bf44
tree499b00b795c90d6060ca8909bec098f1216653ad
parent737f897c2983572ad0205971982c066b86990ba4
qemuDomainDiskPrivateDispose: Prevent dangling 'disk' pointer in blockjob data

Clear the 'disk' member of 'blockjob' as we're freeing the disk object
at this point. While this should not normally happen it was observed
when other bug allowed the VM to be cleared while other threads didn't
yet finish.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c