patch-2.4.14 linux/drivers/usb/devio.c
Next file: linux/drivers/usb/serial/ir-usb.c
Previous file: linux/drivers/usb/Config.in
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Fri Nov 2 17:18:58 2001
- Orig file:
v2.4.13/linux/drivers/usb/devio.c
- Orig date:
Sun Sep 23 11:41:00 2001
diff -u --recursive --new-file v2.4.13/linux/drivers/usb/devio.c linux/drivers/usb/devio.c
@@ -844,6 +844,14 @@
uurb.buffer_length = totlen;
break;
+ case USBDEVFS_URB_TYPE_INTERRUPT:
+ uurb.number_of_packets = 0;
+ if (uurb.buffer_length > 16384)
+ return -EINVAL;
+ if (!access_ok((uurb.endpoint & USB_DIR_IN) ? VERIFY_WRITE : VERIFY_READ, uurb.buffer, uurb.buffer_length))
+ return -EFAULT;
+ break;
+
default:
return -EINVAL;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)