]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Initialization error of qemuCgroupData in Qemu host usb hotplug
authorWen Congyang <wency@cn.fujitsu.com>
Wed, 23 Mar 2011 02:02:15 +0000 (10:02 +0800)
committerWen <ghostwcy@gmail.com>
Wed, 23 Mar 2011 14:10:14 +0000 (22:10 +0800)
commitbcac844f4f21b7aa6501af81efcc1aaa703ba756
tree12d781fc4c64462076b726d851dd078d8278396d
parent18d68462e345cbaabb62253d4cedced092b43f3b
Initialization error of qemuCgroupData in Qemu host usb hotplug

Steps to reproduce this bug:
# cat usb.xml
<hostdev mode='subsystem' type='usb'>
  <source>
    <address bus='0x001' device='0x003'/>
  </source>
</hostdev>
# virsh attach-device vm1 usb.xml
error: Failed to attach device from usb.xml
error: server closed connection:

The reason of this bug is that we set data.cgroup to NULL, and this will cause
libvirtd crashed.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
src/qemu/qemu_hotplug.c