patch-2.4.17 linux/drivers/usb/hid-core.c
Next file: linux/drivers/usb/pegasus.c
Previous file: linux/drivers/usb/devices.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Fri Dec 21 16:40:32 2001
- Orig file:
linux-2.4.16/drivers/usb/hid-core.c
- Orig date:
Sun Sep 16 18:07:43 2001
diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/drivers/usb/hid-core.c linux/drivers/usb/hid-core.c
@@ -1236,7 +1236,7 @@
c = "Device";
for (i = 0; i < hid->maxapplication; i++)
- if (IS_INPUT_APPLICATION(hid->application[i])) {
+ if ((hid->application[i] & 0xffff) < ARRAY_SIZE(hid_types)) {
c = hid_types[hid->application[i] & 0xffff];
break;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)