From: David Cohen Date: Thu, 12 Sep 2013 00:42:47 +0000 (-0700) Subject: usb: dwc3: gadget: avoid memory leak when failing to allocate all eps X-Git-Tag: v3.12-rc2~2^2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1f804676a95b9d5caaa3a822d90bc1101595468;p=pandora-kernel.git usb: dwc3: gadget: avoid memory leak when failing to allocate all eps If dwc3_gadget_init_endpoint() fails after allocate some of the eps, we need to free their memory to avoid leak. Signed-off-by: David Cohen Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed