From: Hans Verkuil Date: Thu, 19 Jul 2007 07:53:36 +0000 (-0300) Subject: V4L/DVB (5869): Add check for valid control ID to v4l2_ctrl_next. X-Git-Tag: v2.6.23-rc1~193^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a46c5fbc6912c4e34cb7ded314249b639dc244a6;p=pandora-kernel.git V4L/DVB (5869): Add check for valid control ID to v4l2_ctrl_next. If v4l2_ctrl_next is called without the V4L2_CTRL_FLAG_NEXT_CTRL then it should check whether the passed control ID is valid and return 0 if it isn't. Otherwise a for-loop over the control IDs will never end. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed