From: Dan Carpenter Date: Thu, 13 Oct 2011 05:41:41 +0000 (-0300) Subject: [media] cx25821: off by one in cx25821_vidioc_s_input() X-Git-Tag: v3.2-rc1~63^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=567a23f4389f86c10355ae89909d6d87f312d1a0;p=pandora-kernel.git [media] cx25821: off by one in cx25821_vidioc_s_input() If "i" is 2 then when we call cx25821_video_mux() we'd end up going past the end of the cx25821_boards[dev->board]->input[]. The INPUT() macro obfuscates what's going on in that function so it's a bit hard to follow. And as Mauro points out the hard coded 2 is not very helpful. Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed