Re: [PATCH] usb: dwc3: gadget: avoid memory leak when failing to allocate all eps

2013-09-11 Thread David Cohen
Hi Mr. Balbi, :) On 09/11/2013 05:38 PM, David Cohen wrote: 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 --- drivers/usb/dwc3/gadget.c | 13 - 1 file changed, 8 insertions(+), 5 deleti

[PATCH] usb: dwc3: gadget: avoid memory leak when failing to allocate all eps

2013-09-11 Thread David Cohen
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 --- drivers/usb/dwc3/gadget.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3