patch-2.2.19 linux/drivers/usb/acm.c
Next file: linux/drivers/usb/audio.c
Previous file: linux/drivers/usb/Config.in
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Sun Mar 25 11:37:37 2001
- Orig file:
v2.2.18/drivers/usb/acm.c
- Orig date:
Sun Mar 25 11:28:31 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/drivers/usb/acm.c linux/drivers/usb/acm.c
@@ -503,12 +503,12 @@
if (ifdata->bInterfaceClass != 10 || ifdata->bNumEndpoints != 2) {
ifcom = cfacm->interface[1].altsetting + 0;
ifdata = cfacm->interface[0].altsetting + 0;
- if (ifdata->bInterfaceClass != 10 || ifdata->bNumEndpoints != 2)
+ if (ifdata->bInterfaceClass != 10 || ifdata->bNumEndpoints < 2)
continue;
}
if (ifcom->bInterfaceClass != 2 || ifcom->bInterfaceSubClass != 2 ||
- ifcom->bInterfaceProtocol != 1 || ifcom->bNumEndpoints != 1)
+ ifcom->bInterfaceProtocol != 1 || ifcom->bNumEndpoints < 1)
continue;
epctrl = ifcom->endpoint + 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)