From: Jack Pham Date: Wed, 26 Mar 2014 17:31:44 +0000 (-0700) Subject: usb: dwc3: gadget: Iterate only over valid endpoints X-Git-Tag: omap-for-v3.16/soc-signed~13^2~20^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32702e96a9f76ea0e0a1d218310d2ac1adbd2907;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed