diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-06-04 18:50:29 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-13 09:25:02 -0700 |
commit | eedbcc70f665c043b7094b17092f6fc99c084c7f (patch) | |
tree | c4b343d58fa721561b8a64100f2faabe06c16832 /drivers/usb/serial | |
parent | c4e994727232f6106df6b21f96d3bfd4c04b3ed1 (diff) | |
download | kernel_samsung_smdk4412-eedbcc70f665c043b7094b17092f6fc99c084c7f.tar.gz kernel_samsung_smdk4412-eedbcc70f665c043b7094b17092f6fc99c084c7f.tar.bz2 kernel_samsung_smdk4412-eedbcc70f665c043b7094b17092f6fc99c084c7f.zip |
USB: keyspan: fix bogus array index
commit a07088098a650267b2eda689538133a324b9523f upstream.
The outcont_endpoints array was indexed using the port minor number
(which can be greater than the array size) rather than the device port
number.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/keyspan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c index a442352d7b6..4f415e28b2e 100644 --- a/drivers/usb/serial/keyspan.c +++ b/drivers/usb/serial/keyspan.c @@ -1833,7 +1833,7 @@ static int keyspan_usa26_send_setup(struct usb_serial *serial, d_details = s_priv->device_details; device_port = port->number - port->serial->minor; - outcont_urb = d_details->outcont_endpoints[port->number]; + outcont_urb = d_details->outcont_endpoints[device_port]; this_urb = p_priv->outcont_urb; dbg("%s - endpoint %d", __func__, usb_pipeendpoint(this_urb->pipe)); |