]> git.proxmox.com Git - qemu.git/commitdiff
Return usb device to host on usb_del command
authorShahar Havivi <shaharh@redhat.com>
Wed, 16 Jun 2010 12:15:37 +0000 (15:15 +0300)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 30 Jun 2010 20:51:09 +0000 (22:51 +0200)
Signed-off-by: Shahar Havivi <shaharh@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
usb-linux.c

index 88273ff479ad57ecdfadf8781b4829edfe8d77dc..22a85e310135650b60e6d3b533f34ceda27210a6 100644 (file)
@@ -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;