1
linux/drivers/media/video/bt8xx
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
..
bt832.c v4l-dvb: remove legacy checks to allow support for kernels < 2.6.10 2008-07-20 07:17:52 -03:00
bt832.h
bt848.h
bttv-audio-hook.c
bttv-audio-hook.h
bttv-cards.c V4L/DVB (8877): b2c2 and bt8xx: udelay to mdelay 2008-09-04 18:27:03 -03:00
bttv-driver.c V4L/DVB (8955): bttv: Prevent NULL pointer dereference in radio_open 2008-10-04 22:38:12 -03:00
bttv-gpio.c
bttv-i2c.c V4L/DVB (8047): bt8xx: i2c structure templates clean-up 2008-07-20 07:09:41 -03:00
bttv-if.c
bttv-input.c V4L/DVB (7368): bttv: added support for Kozumi KTV-01C card 2008-04-24 14:07:51 -03:00
bttv-risc.c V4L/DVB (8757): v4l-dvb: fix a bunch of sparse warnings 2008-09-03 18:37:13 -03:00
bttv-vbi.c V4L/DVB (8430): videodev: move some functions from v4l2-dev.h to v4l2-common.h or v4l2-ioctl.h 2008-07-23 19:00:17 -03:00
bttv.h v4l-dvb: remove legacy checks to allow support for kernels < 2.6.10 2008-07-20 07:17:52 -03:00
bttvp.h V4L/DVB (8757): v4l-dvb: fix a bunch of sparse warnings 2008-09-03 18:37:13 -03:00
Kconfig V4L/DVB (8534): remove select's of FW_LOADER 2008-07-27 12:24:37 -03:00
Makefile V4L/DVB(7767): Move tuners to common/tuners 2008-04-29 18:41:37 -03:00