]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: properly free addresses on non-serial chardev unplug
authorJán Tomko <jtomko@redhat.com>
Tue, 30 Jun 2015 13:48:20 +0000 (15:48 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 1 Jul 2015 06:09:43 +0000 (08:09 +0200)
commit224456fc4ab4d5eb0d20f0b0db92d394c5802dbf
tree663f9dad22f9bfdeea6e3e57e16f017d983ddc74
parentf967e7a6690ed20478623b0707b846f81f469ff4
qemu: properly free addresses on non-serial chardev unplug

The target type comparison in qemuDomainDetachChrDevice
used the VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE enum, so virtio-serial
addresses were not freed properly for channel devices.

Call qemuDomainReleaseDeviceAddress uncoditionally and decide
based on the address type instead of the target/device types.
src/qemu/qemu_hotplug.c