]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (11251): tuner: prevent invalid initialization of t->config in set_type
authorMichael Krufky <mkrufky@linuxtv.org>
Sat, 28 Mar 2009 18:35:26 +0000 (15:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:43 +0000 (12:43 -0300)
commite7ddcd98a179c441d54fe84d221cea4e5852b235
tree6df4b8df9d3680ba8b454de80271552dec134c0e
parent997fb78e73f3dce23c6fa773128583e1fa15d164
V4L/DVB (11251): tuner: prevent invalid initialization of t->config in set_type

Drivers that don't set "config" directly in the set_type function will
end up with an invalid configuration value. Check that the value is sane,
otherwise initialize to 0.

Thanks to James Edward Geiger & Steven Toth for reporting this bug.

Cc: Steven Toth <stoth@linuxtv.org>
Cc: James Edward Geiger <james.e.geiger@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tuner-core.c