summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2013-05-27 14:44:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-29 03:47:45 +0200
commit5f8e2c07d75967ee49a5da1d21ddf5f50d48cda0 (patch)
tree877c5c6de2b0c7513340e6c78f32082c49b72d79
parentUSB: revert periodic scheduling bugfix (diff)
downloadlinux-5f8e2c07d75967ee49a5da1d21ddf5f50d48cda0.tar.xz
linux-5f8e2c07d75967ee49a5da1d21ddf5f50d48cda0.zip
USB: serial: fix Treo/Kyocera interrrupt-in urb context
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. Cc: stable@vger.kernel.org Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 7573ec8a084f..8d1a3e63b0ad 100644
--- a/drivers/usb/serial/visor.c
+++ b/drivers/usb/serial/visor.c
@@ -564,6 +564,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; \