android_kernel_xiaomi_sm8350/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
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
bttv-if.c
bttv-input.c
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
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