mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 15:45:28 +00:00
Fix USB hotplug device string in QEMU driver
The USB hotplug method was mistakenly generating a PCI address string * src/qemu/qemu_driver.c: Fix USB hotplug device string
This commit is contained in:
parent
8540dadbe9
commit
06973f7065
@ -5927,7 +5927,7 @@ static int qemudDomainAttachHostUsbDevice(struct qemud_driver *driver,
|
|||||||
char *devstr = NULL;
|
char *devstr = NULL;
|
||||||
|
|
||||||
if ((qemuCmdFlags & QEMUD_CMD_FLAG_DEVICE) &&
|
if ((qemuCmdFlags & QEMUD_CMD_FLAG_DEVICE) &&
|
||||||
!(devstr = qemuBuildPCIHostdevDevStr(hostdev)))
|
!(devstr = qemuBuildUSBHostdevDevStr(hostdev)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (VIR_REALLOC_N(vm->def->hostdevs, vm->def->nhostdevs+1) < 0) {
|
if (VIR_REALLOC_N(vm->def->hostdevs, vm->def->nhostdevs+1) < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user