From: Shahar Havivi Date: Wed, 16 Jun 2010 12:15:37 +0000 (+0300) Subject: Return usb device to host on usb_del command X-Git-Tag: v0.13.0-rc0~130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00ff227a328f02cdb0913c51bc46457c50351c79;p=thirdparty%2Fqemu.git Return usb device to host on usb_del command Signed-off-by: Shahar Havivi Acked-by: Gerd Hoffmann Signed-off-by: Aurelien Jarno --- diff --git a/usb-linux.c b/usb-linux.c index 88273ff479a..22a85e31013 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;