From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoPEv-00018Z-1A for qemu-devel@nongnu.org; Thu, 17 Sep 2009 18:14:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoPEq-00018J-7E for qemu-devel@nongnu.org; Thu, 17 Sep 2009 18:14:08 -0400 Received: from [199.232.76.173] (port=38324 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoPEq-00018G-4S for qemu-devel@nongnu.org; Thu, 17 Sep 2009 18:14:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35519) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MoPEp-00088b-Eh for qemu-devel@nongnu.org; Thu, 17 Sep 2009 18:14:04 -0400 From: Glauber Costa Date: Thu, 17 Sep 2009 18:40:21 -0400 Message-Id: <1253227221-3589-1-git-send-email-glommer@redhat.com> Subject: [Qemu-devel] [PATCH] fill in fd information in usb device List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com We currently open the usb device and store the file descriptor at fd. But we don't touch the dev structure. Further on, usb_host_claim_interfaces() issues ioctls on dev->fd, which will obviously fail This line used to be there in the past, but was probably removed by accident somewhere back in history. Signed-off-by: Glauber Costa --- usb-linux.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index c434e4f..01d891c 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -922,6 +922,7 @@ static USBDevice *usb_host_device_open_addr(int bus_num, int addr, const char *p dev->bus_num = bus_num; dev->addr = addr; + dev->fd = fd; /* read the device description */ dev->descr_len = read(fd, dev->descr, sizeof(dev->descr)); -- 1.6.2.2