On 3/6/26 08:16, Peter Krempa via Devel wrote:
> Reported via gitlab:
>
> https://gitlab.com/libvirt/libvirt/-/issues/859
>
> I'll also later explore if it's possible to refactor the code to not
> touch the device definition wrappers after hotplug so that the pointer
> can be cleared properly when it's stolen into the domain definition.
>
> Peter Krempa (2):
> qemuDomainAttachDeviceDiskLive: Remove 'disk' variable
> qemu: hotplug: Don't access disk definititon after it was freed after
> media change
>
> src/qemu/qemu_hotplug.c | 15 +++++++--------
> 1 file changed, 7 insertions(+), 8 deletions(-)
>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Michal