diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index d683b1cb6b..329ba6a75d 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -5927,7 +5927,7 @@ static int qemudDomainAttachHostUsbDevice(struct qemud_driver *driver, char *devstr = NULL; if ((qemuCmdFlags & QEMUD_CMD_FLAG_DEVICE) && - !(devstr = qemuBuildPCIHostdevDevStr(hostdev))) + !(devstr = qemuBuildUSBHostdevDevStr(hostdev))) goto error; if (VIR_REALLOC_N(vm->def->hostdevs, vm->def->nhostdevs+1) < 0) {