aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2013-05-27 14:44:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-13 09:25:04 -0700
commite1742ba57d747024a4f0c01c88a212b7e4d5e898 (patch)
tree7510703380f166af570b35bb2aebb51337b7f43f /drivers/usb
parent0317720b2f8c9d7c1b085a039b9a25cfad09a417 (diff)
downloadkernel_samsung_aries-e1742ba57d747024a4f0c01c88a212b7e4d5e898.zip
kernel_samsung_aries-e1742ba57d747024a4f0c01c88a212b7e4d5e898.tar.gz
kernel_samsung_aries-e1742ba57d747024a4f0c01c88a212b7e4d5e898.tar.bz2
USB: serial: fix Treo/Kyocera interrrupt-in urb context
commit 5f8e2c07d75967ee49a5da1d21ddf5f50d48cda0 upstream. The first and second interrupt-in urbs are swapped for some Treo/Kyocera devices, but the urb context was never updated with the new port. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/serial/visor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c
index 1c11959..189a894 100644
--- a/drivers/usb/serial/visor.c
+++ b/drivers/usb/serial/visor.c
@@ -600,6 +600,7 @@ static int treo_attach(struct usb_serial *serial)
dest->bulk_in_endpointAddress = src->bulk_in_endpointAddress;\
dest->bulk_in_buffer = src->bulk_in_buffer; \
dest->interrupt_in_urb = src->interrupt_in_urb; \
+ dest->interrupt_in_urb->context = dest; \
dest->interrupt_in_endpointAddress = \
src->interrupt_in_endpointAddress;\
dest->interrupt_in_buffer = src->interrupt_in_buffer; \