Re: [U-Boot] [RFC 1/1] usb: musb: avoid out of bound access in udc_setup_ep

2017-04-16 Thread Marek Vasut
On 04/15/2017 02:29 PM, Heinrich Schuchardt wrote: > 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 Applied, thanks. > --- >

[U-Boot] [RFC 1/1] usb: musb: avoid out of bound access in udc_setup_ep

2017-04-15 Thread Heinrich Schuchardt
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 --- I have no hardware for testing the patch. Please, review thoroughly. --- drivers/usb/m