]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit8bdcdc3379b8376b38af45ed25115b368846c438
tree3dfec85a20cf7e4b8fb110c20304e00ed3fe7940
parent730d1233a34a24dbf32b0942f9d0bfc168ed8bb6
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