]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: keyspan: fix bogus array index
authorJohan Hovold <jhovold@gmail.com>
Tue, 4 Jun 2013 16:50:29 +0000 (18:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2013 17:49:04 +0000 (10:49 -0700)
commit29594cdbe04429fcf23fc66e65be0450e0f46a71
tree999b0242f76d091b128b5c4b22ef76c113c3a17b
parente9f291d715e86564d2552ecad27ea99049bac915
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>
drivers/usb/serial/keyspan.c