]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_hotplug: fix crash in hot(un)plugging chardev devices
authorPavel Hrdina <phrdina@redhat.com>
Tue, 18 Oct 2016 06:59:14 +0000 (08:59 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 18 Oct 2016 11:34:07 +0000 (13:34 +0200)
commit08107826644daa0af710c36aa9282f590e0438dc
treec37a53d17abe0953593d54802e2e2239dbc44b0c
parent6262a9b282bf55a0b39abb49f54e18c7cb61c3dd
qemu_hotplug: fix crash in hot(un)plugging chardev devices

We need to make sure that the chardev is TCP.  Without this check we
may access different part of union and corrupt pointers.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_hotplug.c