Re: [PATCH] usb: gadget: uvc: Fix return value in case of error

2016-07-16 Thread Laurent Pinchart
Hi Christophe, Thank you for the patch. On Saturday 16 Jul 2016 09:04:40 Christophe JAILLET wrote: > If this memory allocation fail, we will return 0, which means success. > Return -ENOMEM instead. > > Signed-off-by: Christophe JAILLET Reviewed-by: Laurent Pinchart > --- > drivers/usb/gadge

[PATCH] usb: gadget: uvc: Fix return value in case of error

2016-07-16 Thread Christophe JAILLET
If this memory allocation fail, we will return 0, which means success. Return -ENOMEM instead. Signed-off-by: Christophe JAILLET --- drivers/usb/gadget/function/uvc_configfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/uvc_configfs.c b/driver