Re: [PATCH 1/8] usb/gadget: add some error recovery in afunc_bind()

2012-09-17 Thread Sebastian Andrzej Siewior
On 09/17/2012 08:02 AM, Jassi Brar wrote: Though better would be to not refuse IN transfers if an OUT ep isn't available and vice versa - the sound card might support only either Playback or Capture, it doesn't have to always support both. The rbuf should have been allocated only for ep that

[PATCH 1/8] usb/gadget: add some error recovery in afunc_bind()

2012-09-16 Thread Sebastian Andrzej Siewior
In case something goes wrong here, don't leak memory / endpoints. Cc: Yadwinder Singh yadi.bra...@gmail.com Cc: Jaswinder Singh jaswinder.si...@linaro.org Signed-off-by: Sebastian Andrzej Siewior bige...@linutronix.de --- drivers/usb/gadget/f_uac2.c | 25 ++--- 1 file