kernel-fxtec-pro1x/drivers/media
Jean Delvare c37396c194 V4L/DVB (8955): bttv: Prevent NULL pointer dereference in radio_open
Fix the following crash in the bttv driver:

BUG: unable to handle kernel NULL pointer dereference at 000000000000036c
IP: [<ffffffffa037860a>] radio_open+0x3a/0x170 [bttv]

This happens because radio_open assumes that all present bttv devices
have a radio function. If a bttv device without radio and one with
radio are installed on the same system, and the one without radio is
registered first, then radio_open checks for the radio device number
of a bttv device that has no radio function, and this breaks. All we
have to do to fix it is to skip bttv devices without a radio function.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-04 22:38:12 -03:00
..
common V4L/DVB (8805): Steven Toth email address change 2008-09-03 18:37:21 -03:00
dvb V4L/DVB (8877): b2c2 and bt8xx: udelay to mdelay 2008-09-04 18:27:03 -03:00
radio V4L/DVB (8778): radio: fix incorrect video_register_device result check 2008-09-03 18:37:16 -03:00
video V4L/DVB (8955): bttv: Prevent NULL pointer dereference in radio_open 2008-10-04 22:38:12 -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