V4L/DVB (12338): cx18: Read buffer overflow
authorAndy Walls <awalls@radix.net>
Fri, 24 Jul 2009 00:51:29 +0000 (21:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Aug 2009 23:39:02 +0000 (20:39 -0300)
commit225aeb1c5863bc92c6bb1f921e9a6cf4d15dbb2a
tree1488e271a171fdbaacf2eaa19f894bf1b7f1b011
parented18d0c87ee0ab6e0985d83c19cd135b1bd54998
V4L/DVB (12338): cx18: Read buffer overflow

This mistakenly tested against sizeof(freqs) instead of the array size. Due to
the mask the only illegal value possible was 3.

Reported-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-controls.c