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
@ -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…
Reference in New Issue
Block a user