mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07:00
Return usb device to host on usb_del command
Signed-off-by: Shahar Havivi <shaharh@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
03c71553ad
commit
00ff227a32
1 changed files with 1 additions and 0 deletions
|
|
@ -991,6 +991,7 @@ static int usb_host_close(USBHostDevice *dev)
|
|||
async_complete(dev);
|
||||
dev->closing = 0;
|
||||
usb_device_detach(&dev->dev);
|
||||
ioctl(dev->fd, USBDEVFS_RESET);
|
||||
close(dev->fd);
|
||||
dev->fd = -1;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue