USB: serial: fix Treo/Kyocera interrrupt-in urb context
authorJohan Hovold <jhovold@gmail.com>
Mon, 27 May 2013 12:44:37 +0000 (14:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2013 16:44:56 +0000 (09:44 -0700)
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>
drivers/usb/serial/visor.c

index 53f7709..b3afd19 100644 (file)
@@ -608,6 +608,7 @@ static int treo_attach(struct usb_serial *serial)
                dest->bulk_in_buffer = src->bulk_in_buffer;             \
                dest->bulk_in_size = src->bulk_in_size;                 \
                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;   \