fill in fd information in usb device
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.
Signed-off-by Glauber Costa <[email protected]>
--- usb-linux.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
usb-linux.c +1 -0
@@ -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