Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376735
b: refs/heads/master
c: e2e2f0e
h: refs/heads/master
i:
  376733: c898aa8
  376731: 6dbd4e2
  376727: 2f79ca4
  376719: ecef4f8
  376703: 5e17a50
v: v3
  • Loading branch information
Federico Manzan authored and Greg Kroah-Hartman committed May 29, 2013
1 parent 051daf7 commit 60eb624
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5cbfa3acdcbf19e1d29cf3479ad8200d2e644e44
refs/heads/master: e2e2f0ea1c935edcf53feb4c4c8fdb4f86d57dd9
10 changes: 7 additions & 3 deletions trunk/drivers/usb/core/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1287,9 +1287,13 @@ static int proc_do_submiturb(struct dev_state *ps, struct usbdevfs_urb *uurb,
goto error;
}
for (totlen = u = 0; u < uurb->number_of_packets; u++) {
/* arbitrary limit,
* sufficient for USB 2.0 high-bandwidth iso */
if (isopkt[u].length > 8192) {
/*
* arbitrary limit need for USB 3.0
* bMaxBurst (0~15 allowed, 1~16 packets)
* bmAttributes (bit 1:0, mult 0~2, 1~3 packets)
* sizemax: 1024 * 16 * 3 = 49152
*/
if (isopkt[u].length > 49152) {
ret = -EINVAL;
goto error;
}
Expand Down

0 comments on commit 60eb624

Please sign in to comment.