Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299427
b: refs/heads/master
c: e65cdfa
h: refs/heads/master
i:
  299425: bb26e2c
  299423: c18a054
v: v3
  • Loading branch information
Xi Wang authored and Greg Kroah-Hartman committed Apr 17, 2012
1 parent c3010ff commit 28c48bc
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 8963c487a80b4688c9e68dcc504a90074aacc145
refs/heads/master: e65cdfae71cecec0fcd43a3f9ac8b5e4ae52db08
5 changes: 3 additions & 2 deletions trunk/drivers/usb/misc/usbtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,9 @@ test_ctrl_queue(struct usbtest_dev *dev, struct usbtest_param *param)
struct ctrl_ctx context;
int i;

if (param->sglen == 0 || param->iterations > UINT_MAX / param->sglen)
return -EOPNOTSUPP;

spin_lock_init(&context.lock);
context.dev = dev;
init_completion(&context.complete);
Expand Down Expand Up @@ -1981,8 +1984,6 @@ usbtest_ioctl(struct usb_interface *intf, unsigned int code, void *buf)

/* queued control messaging */
case 10:
if (param->sglen == 0)
break;
retval = 0;
dev_info(&intf->dev,
"TEST 10: queue %d control calls, %d times\n",
Expand Down

0 comments on commit 28c48bc

Please sign in to comment.