V4L/DVB (12337): ivtv: Read buffer overflow
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 24 Jul 2009 00:46:57 +0000 (21:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Aug 2009 23:39:02 +0000 (20:39 -0300)
commited18d0c87ee0ab6e0985d83c19cd135b1bd54998
tree4525e5280f255ab41794fb6a8b89a159a5d44486
parent5b766182a110311fbf618f736bc8a8f2f7ce3f4c
V4L/DVB (12337): ivtv: Read buffer overflow

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

Signed-off-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/ivtv/ivtv-controls.c