diff options
author | Jassi Brar <jaswinder.singh@linaro.org> | 2011-06-24 14:47:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-01 17:45:42 -0400 |
commit | 28f75f4db1e5ea1366375b2a6c40d66659e0e7ec (patch) | |
tree | 5c4dd50d0843276665a6516237ff10cb90f54039 | |
parent | 5030ec730279eabafccf862f3c8393af90c258a5 (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.c | 2 |
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 | ||
656 | error: | 656 | error: |
657 | kfree(uvc); | 657 | kfree(uvc); |