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
..
2008-08-22 02:33:23 -04:00
2008-08-18 21:40:04 +02:00
2008-08-19 18:47:56 +02:00
2008-08-15 11:50:15 -07:00
2008-08-26 00:19:28 +10:00
2008-09-05 14:39:37 -07:00
2008-08-16 16:35:33 +01:00
2008-09-02 19:21:40 -07:00
2008-08-13 17:33:00 -07:00