]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuAssignDeviceChrAlias: Fix a crasher during <console/> hotplug
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 12 Apr 2023 10:20:42 +0000 (12:20 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Apr 2023 14:02:35 +0000 (16:02 +0200)
commitfc8320faef32e08a5ea70a1537c90f90fee8b04f
tree42f7f05db8255df4f362687ed4807c45c860717c
parente99072731c22bf43e424fc07c46fb84e7c409a70
qemuAssignDeviceChrAlias: Fix a crasher during <console/> hotplug

For a running guest, a <serial/> device can be hotunplugged. This
will then remove also aliased <console/>. Trying to hotplug a
<console/> device then, libvirtd crashed because it dereferences
def->consoles while there's none.

Fixes: 42d53ac799a1d7f1414737caa4deb73871876992
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_alias.c