usb: musb: avoid out of bound access in udc_setup_ep
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 15 Apr 2017 12:29:54 +0000 (14:29 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 25 Apr 2017 10:50:12 +0000 (12:50 +0200)
commit7f2e59aee5894ffc1d79b485f45ae00902baa738
tree3dfec85a20cf7e4b8fb110c20304e00ed3fe7940
parent2511b2ed4df36467898952aa7825abbe8d0a211f
usb: musb: avoid out of bound access in udc_setup_ep

For id = 15 an out of bound access occurs in udc_setup_ep().
Increase the size of epinfo[] from 30 to 32 to encompass
ids 0..15.

The problem was highlighted by cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/usb/musb/musb_udc.c