From: Laurent Pinchart Date: Wed, 21 Mar 2012 12:50:36 +0000 (-0300) Subject: uvcvideo: Fix ENUMINPUT handling X-Git-Tag: v3.2.19~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42a8c2cbc48b9cf37fbc7ad73d0238630c5f5272;p=pandora-kernel.git uvcvideo: Fix ENUMINPUT handling commit 31c5f0c5e25ed71eeced170f113bb590f2f1f6f3 upstream. Properly validate the user-supplied index against the number of inputs. The code used the pin local variable instead of the index by mistake. Reported-by: Jozef Vesely Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed