linux-kernel-test/drivers/media
Trent Piepho 4ef2ccc261 V4L/DVB (10558): bttv: norm value should be unsigned
The norm value in the driver is an index into an array and the the driver
doesn't allow it to be negative or otherwise invalid.  It should be
unsigned but wasn't in all places.

Fix some structs and functions to have the norm be unsigned.  Get rid of
useless checks for "< 0".  Most of the driver code can't handle a norm
value that's out of range, so change some ">= BTTV_TVNORMS" checks to
BUG_ON().  There's no point in silently ignoring invalid driver state just
to crash because of it later.

Reported-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-03-30 12:42:46 -03:00
..
common V4L/DVB (10515): Adds IR table for the IR provided with this board and includes it at 2009-03-30 12:42:43 -03:00
dvb V4L/DVB (10512): tda1004x: Fix eeprom firmware load on boards with 16MHz Xtal 2009-03-30 12:42:43 -03:00
radio V4L/DVB (10531): Code rearrangements in preparation for other report types 2009-03-30 12:42:45 -03:00
video V4L/DVB (10558): bttv: norm value should be unsigned 2009-03-30 12:42:46 -03:00
Kconfig V4L/DVB (8392): media/Kconfig: Convert V4L1_COMPAT select into "depends on" 2008-07-20 07:28:49 -03:00
Makefile V4L/DVB (8274): sms1xxx: build cleanup after driver relocation 2008-07-20 07:20:56 -03:00