USB: cdc-acm: fix pipe type of write endpoint
authorMing Lei <ming.lei@canonical.com>
Tue, 16 Oct 2012 13:21:21 +0000 (21:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Oct 2012 20:41:34 +0000 (13:41 -0700)
commitc5211187f7ff8e8dbff4ebf7c011ac4c0ffe319c
treef6fd25002da6e743e96ad7175d722b3992a563ec
parent014639003c77a51fc319c9fdf225e7747cb6e18d
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>
drivers/usb/class/cdc-acm.c