usb: dwc3: gadget: avoid memory leak when failing to allocate all eps
authorDavid Cohen <david.a.cohen@linux.intel.com>
Thu, 12 Sep 2013 00:42:47 +0000 (17:42 -0700)
committerFelipe Balbi <balbi@ti.com>
Tue, 17 Sep 2013 16:05:01 +0000 (11:05 -0500)
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 <david.a.cohen@linux.intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found