From: Laurent Pinchart Date: Thu, 21 Jan 2010 19:53:11 +0000 (-0300) Subject: V4L/DVB: uvcvideo: Return -ERANGE when setting a control to an out-of-range menu... X-Git-Tag: v2.6.34-rc1~280^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a4e76c14cbe0609fdb5c558f867fe7c556bb1c7;p=pandora-kernel.git V4L/DVB: uvcvideo: Return -ERANGE when setting a control to an out-of-range menu index The V4L2 specification states that out of bounds control values must either be clamped to the valid range or result in a -ERANGE error code. Fix the driver to return -ERANGE instead of -EINVAL when setting a menu control to an invalid value. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed