Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93311
b: refs/heads/master
c: ff66e3c
h: refs/heads/master
i:
  93309: 25539df
  93307: cc24e95
  93303: e617cf3
  93295: baf607d
  93279: 67420f5
  93247: 161c0bf
  93183: d5d762b
v: v3
  • Loading branch information
Andrew Morton authored and Greg Kroah-Hartman committed Apr 25, 2008
1 parent 5fcb5d3 commit 7383a5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 8873aaa6e574d85c020a1c472d6d159cd1ec8aef
refs/heads/master: ff66e3ce3524125106be3ff18104ecde0849b85c
4 changes: 3 additions & 1 deletion trunk/drivers/usb/core/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,14 +647,16 @@ static int proc_control(struct dev_state *ps, void __user *arg)
struct usbdevfs_ctrltransfer ctrl;
unsigned int tmo;
unsigned char *tbuf;
unsigned wLength;
int i, j, ret;

if (copy_from_user(&ctrl, arg, sizeof(ctrl)))
return -EFAULT;
ret = check_ctrlrecip(ps, ctrl.bRequestType, ctrl.wIndex);
if (ret)
return ret;
if (ctrl.wLength > PAGE_SIZE)
wLength = ctrl.wLength; /* To suppress 64k PAGE_SIZE warning */
if (wLength > PAGE_SIZE)
return -EINVAL;
tbuf = (unsigned char *)__get_free_page(GFP_KERNEL);
if (!tbuf)
Expand Down

0 comments on commit 7383a5f

Please sign in to comment.