mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
USB: Gadget: Webcam: Return correct result of bind
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>
This commit is contained in:
parent
5030ec7302
commit
28f75f4db1
1 changed files with 1 additions and 1 deletions
|
@ -651,7 +651,7 @@ uvc_bind_config(struct usb_configuration *c,
|
||||||
if (ret)
|
if (ret)
|
||||||
kfree(uvc);
|
kfree(uvc);
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
kfree(uvc);
|
kfree(uvc);
|
||||||
|
|
Loading…
Reference in a new issue