projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5030ec7
)
USB: Gadget: Webcam: Return correct result of bind
author
Jassi Brar
<jaswinder.singh@linaro.org>
Fri, 24 Jun 2011 18:47:26 +0000
(
00:17
+0530)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 1 Jul 2011 21:45:42 +0000
(14:45 -0700)
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>
drivers/usb/gadget/f_uvc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/f_uvc.c
b/drivers/usb/gadget/f_uvc.c
index df74d0311910bddb967185215481743844cec281..7a8b9aa4aea5468e8ce92b0d2f8184d409509721 100644
(file)
--- a/
drivers/usb/gadget/f_uvc.c
+++ b/
drivers/usb/gadget/f_uvc.c
@@
-651,7
+651,7
@@
uvc_bind_config(struct usb_configuration *c,
if (ret)
kfree(uvc);
- return
0
;
+ return
ret
;
error:
kfree(uvc);