Commit 1c2dd325 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix usb-serial core to look at the proper interface descriptor

parent 976814bb
...@@ -1006,7 +1006,7 @@ int usb_serial_probe(struct usb_interface *interface, ...@@ -1006,7 +1006,7 @@ int usb_serial_probe(struct usb_interface *interface,
/* descriptor matches, let's find the endpoints needed */ /* descriptor matches, let's find the endpoints needed */
/* check out the endpoints */ /* check out the endpoints */
iface_desc = &interface->altsetting[0]; iface_desc = interface->cur_altsetting;
for (i = 0; i < iface_desc->desc.bNumEndpoints; ++i) { for (i = 0; i < iface_desc->desc.bNumEndpoints; ++i) {
endpoint = &iface_desc->endpoint[i].desc; endpoint = &iface_desc->endpoint[i].desc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment