Re: [PATCH] USB: Gadget: Webcam: Return correct result of bind

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jassi,

Thanks for the patch.

On Friday 24 June 2011 20:47:26 Jassi Brar wrote:
> The config bind was reported success even if usb_add_function
> failed. Fix the return value.
> 
> Signed-off-by: Jassi Brar <jaswinder.singh@xxxxxxxxxx>

Acked-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>

> ---
>  drivers/usb/gadget/f_uvc.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/usb/gadget/f_uvc.c b/drivers/usb/gadget/f_uvc.c
> index be446b7..c847b9e 100644
> --- a/drivers/usb/gadget/f_uvc.c
> +++ b/drivers/usb/gadget/f_uvc.c
> @@ -649,7 +649,7 @@ uvc_bind_config(struct usb_configuration *c,
>  	if (ret)
>  		kfree(uvc);
> 
> -	return 0;
> +	return ret;
> 
>  error:
>  	kfree(uvc);

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux