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: Ming Lei <ming.lei@canonical.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
014639003c
commit
c5211187f7
1 changed files with 1 additions and 1 deletions
|
@ -1233,7 +1233,7 @@ made_compressed_probe:
|
||||||
|
|
||||||
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,
|
||||||
|
|
Loading…
Reference in a new issue