Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321892
b: refs/heads/master
c: 99f347c
h: refs/heads/master
v: v3
  • Loading branch information
Sven Schnelle authored and Greg Kroah-Hartman committed Aug 18, 2012
1 parent 649a310 commit 23f0a9e
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 83957df21dd94655d2b026e0944a69ff37b83988
refs/heads/master: 99f347caa4568cb803862730b3b1f1942639523f
3 changes: 2 additions & 1 deletion trunk/drivers/usb/class/cdc-acm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,8 @@ static int acm_probe(struct usb_interface *intf,
}


if (data_interface->cur_altsetting->desc.bNumEndpoints < 2)
if (data_interface->cur_altsetting->desc.bNumEndpoints < 2 ||
control_interface->cur_altsetting->desc.bNumEndpoints == 0)
return -EINVAL;

epctrl = &control_interface->cur_altsetting->endpoint[0].desc;
Expand Down

0 comments on commit 23f0a9e

Please sign in to comment.