From: Laurent Pinchart Date: Tue, 28 Aug 2012 21:38:58 +0000 (-0300) Subject: [media] uvcvideo: Set error_idx properly for extended controls API failures X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~21^2^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0ed2ce840b3a59b587e8aa398538141a86e9588;p=pandora-kernel.git [media] uvcvideo: Set error_idx properly for extended controls API failures When one of the requested controls doesn't exist the error_idx field must reflect that situation. For G_EXT_CTRLS and S_EXT_CTRLS, error_idx must be set to the control count. For TRY_EXT_CTRLS, it must be set to the index of the unexisting control. This issue was found by the v4l2-compliance tool. Signed-off-by: Laurent Pinchart Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed