From: Johan Hovold Date: Mon, 27 May 2013 12:44:37 +0000 (+0200) Subject: USB: serial: fix Treo/Kyocera interrrupt-in urb context X-Git-Tag: v3.10-rc5~20^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f8e2c07d75967ee49a5da1d21ddf5f50d48cda0;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c index 7573ec8a084..8d1a3e63b0a 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; \