Commit c5211187 authored by Ming Lei's avatar Ming Lei Committed by Greg Kroah-Hartman

USB: cdc-acm: fix pipe type of write endpoint

If the write endpoint is interrupt type, usb_sndintpipe() should
be passed to usb_fill_int_urb() instead of usb_sndbulkpipe().

Cc: Oliver Neukum <oneukum@suse.de>
Signed-off-by: default avatarMing Lei <ming.lei@canonical.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 01463900
...@@ -1233,7 +1233,7 @@ static int acm_probe(struct usb_interface *intf, ...@@ -1233,7 +1233,7 @@ static int acm_probe(struct usb_interface *intf,
if (usb_endpoint_xfer_int(epwrite)) if (usb_endpoint_xfer_int(epwrite))
usb_fill_int_urb(snd->urb, usb_dev, usb_fill_int_urb(snd->urb, usb_dev,
usb_sndbulkpipe(usb_dev, epwrite->bEndpointAddress), usb_sndintpipe(usb_dev, epwrite->bEndpointAddress),
NULL, acm->writesize, acm_write_bulk, snd, epwrite->bInterval); NULL, acm->writesize, acm_write_bulk, snd, epwrite->bInterval);
else else
usb_fill_bulk_urb(snd->urb, usb_dev, usb_fill_bulk_urb(snd->urb, usb_dev,
......
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