diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-07 18:47:03 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-07 18:47:03 +0200 |
commit | c25887f52f7f1eaefeed7dfbd968f93b17e1f97d (patch) | |
tree | 00202c527767c78d4564d8ab55510dac1b43fcb9 /linux/drivers/media/video/cpia_usb.c | |
parent | b510f97758d8efa413e8ca7ab0457b1951c372c9 (diff) | |
download | mediapointer-dvb-s2-c25887f52f7f1eaefeed7dfbd968f93b17e1f97d.tar.gz mediapointer-dvb-s2-c25887f52f7f1eaefeed7dfbd968f93b17e1f97d.tar.bz2 |
bttv: Prevent NULL pointer dereference in radio_open
From: Jean Delvare <khali@linux-fr.org>
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.
Priority: high
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/cpia_usb.c')
0 files changed, 0 insertions, 0 deletions