summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorJassi Brar <jaswinder.singh@linaro.org>2011-06-24 22:47:26 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-02 01:45:42 +0400
commit28f75f4db1e5ea1366375b2a6c40d66659e0e7ec (patch)
tree5c4dd50d0843276665a6516237ff10cb90f54039 /drivers/usb/gadget
parent5030ec730279eabafccf862f3c8393af90c258a5 (diff)
downloadlinux-28f75f4db1e5ea1366375b2a6c40d66659e0e7ec.tar.xz
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>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/f_uvc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_uvc.c b/drivers/usb/gadget/f_uvc.c
index df74d0311910..7a8b9aa4aea5 100644
--- 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);