Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232646
b: refs/heads/master
c: 3c47eb0
h: refs/heads/master
v: v3
  • Loading branch information
Maulik Mankad authored and Greg Kroah-Hartman committed Jan 23, 2011
1 parent d2653d2 commit c444572
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: d14fc1a74e846d7851f24fc9519fe87dc12a1231
refs/heads/master: 3c47eb06f08eb970ea9d696bcdb57a175d37b470
5 changes: 3 additions & 2 deletions trunk/drivers/usb/gadget/composite.c
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,9 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
*/
switch (ctrl->bRequestType & USB_RECIP_MASK) {
case USB_RECIP_INTERFACE:
if (cdev->config)
f = cdev->config->interface[intf];
if (!cdev->config || w_index >= MAX_CONFIG_INTERFACES)
break;
f = cdev->config->interface[intf];
break;

case USB_RECIP_ENDPOINT:
Expand Down

0 comments on commit c444572

Please sign in to comment.