commit | 6c25955ed632227d28b85db274e519b766e26ddd | [log] [tgz] |
---|---|---|
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | Wed Dec 10 12:34:01 2014 +0100 |
committer | Felipe Balbi <balbi@ti.com> | Mon Jan 12 12:13:26 2015 -0600 |
tree | 1f4e689e4c0a02b254bc36b34e8bcd238c6bc856 | |
parent | bbea6de1bd12dd509f774f2a3165216eeac7bc54 [diff] |
usb: gadget: uvc: verify descriptors presence If the caller of uvc_alloc() does not provide enough descriptors, binding the function should fail, so appropriate code is returned from uvc_copy_descriptors(). uvc_function_bind() is modified accordingly to account for possible errors from uvc_copy_descriptors(). Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Felipe Balbi <balbi@ti.com>