aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/class/cdc-acm.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2012-10-16 13:21:21 +0000
committerGreg Kroah-Hartman <[email protected]>2012-10-17 20:41:34 +0000
commitc5211187f7ff8e8dbff4ebf7c011ac4c0ffe319c (patch)
treef6fd25002da6e743e96ad7175d722b3992a563ec /drivers/usb/class/cdc-acm.c
parentusbdevfs: Fix broken scatter-gather transfer (diff)
downloadkernel-c5211187f7ff8e8dbff4ebf7c011ac4c0ffe319c.tar.gz
kernel-c5211187f7ff8e8dbff4ebf7c011ac4c0ffe319c.zip
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 <[email protected]> Signed-off-by: Ming Lei <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
-rw-r--r--drivers/usb/class/cdc-acm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index 981f2132d128..572f4e7bd3ff 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -1233,7 +1233,7 @@ made_compressed_probe:
if (usb_endpoint_xfer_int(epwrite))
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);
else
usb_fill_bulk_urb(snd->urb, usb_dev,