aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMicah Dowty <micah@vmware.com>2006-05-19 14:26:24 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-21 18:04:11 -0400
commit3612242e527eb47ee4756b5350f8bdf791aa5ede (patch)
tree581c5088ce1cff693615ce06cac6ba5410d5aca9 /drivers
parente016683d595aacde78b9385aabd0b98c8915d885 (diff)
[PATCH] USB: Allow high-bandwidth isochronous packets via usbfs
This patch increases an arbitrary limit on the size of individual isochronous packets submitted via usbfs. The limit is still arbitrary, but it's now large enough to support the maximum packet size used by high-bandwidth isochronous transfers. Signed-off-by: Micah Dowty <micah@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/core/devio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 04f7504e0985..b04ede772f2c 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -982,7 +982,8 @@ static int proc_do_submiturb(struct dev_state *ps, struct usbdevfs_urb *uurb,
982 return -EFAULT; 982 return -EFAULT;
983 } 983 }
984 for (totlen = u = 0; u < uurb->number_of_packets; u++) { 984 for (totlen = u = 0; u < uurb->number_of_packets; u++) {
985 if (isopkt[u].length > 1023) { 985 /* arbitrary limit, sufficient for USB 2.0 high-bandwidth iso */
986 if (isopkt[u].length > 8192) {
986 kfree(isopkt); 987 kfree(isopkt);
987 return -EINVAL; 988 return -EINVAL;
988 } 989 }