From: Andrzej Pietrasiewicz Date: Wed, 10 Dec 2014 11:34:01 +0000 (+0100) Subject: usb: gadget: uvc: verify descriptors presence X-Git-Tag: fixes-v4.0-rc1~102^2^2~186 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c25955ed632227d28b85db274e519b766e26ddd;p=pandora-kernel.git 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 Acked-by: Laurent Pinchart Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed