[CC'ing Greg with correct email this time] On 25 June 2011 00:17, Jassi Brar <jaswinder.singh@xxxxxxxxxx> 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> > --- > 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); > -- > 1.7.4.1 > > -- 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