commit | 32702e96a9f76ea0e0a1d218310d2ac1adbd2907 | [log] [tgz] |
---|---|---|
author | Jack Pham <jackp@codeaurora.org> | Wed Mar 26 10:31:44 2014 -0700 |
committer | Felipe Balbi <balbi@ti.com> | Wed Apr 16 10:11:45 2014 -0500 |
tree | 46d152d4f7e1f9bb96020e1f8b9e909f81f56cb3 | |
parent | 8b2bc2c9351b4c09bc3d9096e2a7af3988565dbf [diff] |
usb: dwc3: gadget: Iterate only over valid endpoints Make dwc3_gadget_resize_tx_fifos() iterate only over IN endpoints that are actually present, based on the num_in_eps parameter. This terminates the loop so as to prevent dereferencing a potential NULL dwc->eps[i] where i >= (num_in_eps + num_out_eps). Signed-off-by: Jack Pham <jackp@codeaurora.org> Signed-off-by: Felipe Balbi <balbi@ti.com>