diff --git a/usb-linux.c b/usb-linux.c index 88273ff479ad57ecdfadf8781b4829edfe8d77dc..22a85e310135650b60e6d3b533f34ceda27210a6 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -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;