Skip to content

Commit

Permalink
USB: Gadget: Webcam: Return correct result of bind
Browse files Browse the repository at this point in the history
The config bind was reported success even if usb_add_function
failed. Fix the return value.

Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jassi Brar authored and Greg Kroah-Hartman committed Jul 1, 2011
1 parent 5030ec7 commit 28f75f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/f_uvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ uvc_bind_config(struct usb_configuration *c,
if (ret)
kfree(uvc);

return 0;
return ret;

error:
kfree(uvc);
Expand Down

0 comments on commit 28f75f4

Please sign in to comment.