aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJassi Brar <jaswinder.singh@linaro.org>2011-06-24 14:47:26 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-01 17:45:42 -0400
commit28f75f4db1e5ea1366375b2a6c40d66659e0e7ec (patch)
tree5c4dd50d0843276665a6516237ff10cb90f54039
parent5030ec730279eabafccf862f3c8393af90c258a5 (diff)
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>
-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,
651 if (ret) 651 if (ret)
652 kfree(uvc); 652 kfree(uvc);
653 653
654 return 0; 654 return ret;
655 655
656error: 656error:
657 kfree(uvc); 657 kfree(uvc);