summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-03-29 10:48:28 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-24 09:32:05 +0200
commite23007895028b0cb73dc28d5b4e7fa5976a0dfab (patch)
tree62f44d2fbc142bda26b51c9538cd2032763f40ab /arch/arm
parent5a310ab03d5a8fc4fb2d90133a383c2a3474da38 (diff)
usb: musb: gadget: misplaced out of bounds check
commit af6f8529098aeb0e56a68671b450cf74e7a64fcd upstream. musb->endpoints[] has array size MUSB_C_NUM_EPS. We must check array bounds before accessing the array and not afterwards. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Bin Liu <b-liu@ti.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions