]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Refactor helpers for USB device attachment
authorOsier Yang <jyang@redhat.com>
Fri, 3 May 2013 18:07:30 +0000 (02:07 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 13 May 2013 13:51:55 +0000 (21:51 +0800)
commit7d763acaf2c3b9e985db8878f0085b1d52d2b820
tree26fdb4a1c2745772078ec3c8d9e621ee4bb651b1
parent0ced83dcfbb19af1201202e1af0a7073c338aabd
qemu: Refactor helpers for USB device attachment

It's better to put the usb related codes into qemuDomainAttachHostUsbDevice
instead of qemuDomainAttachHostDevice.

And in the old qemuDomainAttachHostDevice, just stealing the "usb" from
driver->activeUsbHostdevs leaks the memory.
src/qemu/qemu_hotplug.c