Skip to contentSkip to conversation

fill in fd information in usb device

PATCH New Glauber Costa 1 participant 1 message Sep 17, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fill in fd information in usb device

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.

---
 usb-linux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
usb-linux.c +1 -0
index c434e4f..01d891c 100644
@@ -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));
Signature · 1 line
1.6.2.2