Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28336
b: refs/heads/master
c: e016683
h: refs/heads/master
v: v3
  • Loading branch information
Micah Dowty authored and Greg Kroah-Hartman committed Jun 21, 2006
1 parent b4218c0 commit 2e36f00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: b9827e4b29edb4af1481b75efdf9ea2d8a7ffc96
refs/heads/master: e016683d595aacde78b9385aabd0b98c8915d885
4 changes: 2 additions & 2 deletions trunk/drivers/usb/core/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,8 +923,8 @@ static int proc_do_submiturb(struct dev_state *ps, struct usbdevfs_urb *uurb,
if ((ep->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)
!= USB_ENDPOINT_XFER_CONTROL)
return -EINVAL;
/* min 8 byte setup packet, max arbitrary */
if (uurb->buffer_length < 8 || uurb->buffer_length > PAGE_SIZE)
/* min 8 byte setup packet, max 8 byte setup plus an arbitrary data stage */
if (uurb->buffer_length < 8 || uurb->buffer_length > (8 + MAX_USBFS_BUFFER_SIZE))
return -EINVAL;
if (!(dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_KERNEL)))
return -ENOMEM;
Expand Down

0 comments on commit 2e36f00

Please sign in to comment.