]> git.karo-electronics.de Git - karo-tx-linux.git/commit
V4L/DVB (10218): cx23885: Fix Oops for mixed install of analog and digital only cards
authorAndy Walls <awalls@radix.net>
Sat, 10 Jan 2009 01:59:27 +0000 (22:59 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 23 Mar 2009 22:00:04 +0000 (15:00 -0700)
commit32145abccae99820e3850acd458eb2a1934fb0e5
tree41f9f3913ed274307f1a08f71bca6e18696d3c01
parentbbb9a852a98903ef58c61982ba609bca14f5ffe4
V4L/DVB (10218): cx23885: Fix Oops for mixed install of analog and digital only cards

commit cd8f894eacf13996d920fdd2aef1afc55156b191 upstream.

Analog support for HVR-1250 has not been completed, but does exist for
the HVR-1800.

Since both cards use the same driver, it tries to create the analog
dev for both devices, which is not possible.

This causes a NULL error to show up in video_open and mpeg_open.

-Mark

Iterations through the cx23885_devlist must check for NULL
pointers as some supported devices only have DVB support at the moment.
Mark Jenks encoutered an Oops in a system with both an HVR-1250 and HVR-1800
installed.

-Andy

Reported-by: Mark Jenks <mjenks1968@gmail.com>
Tested-by: Mark Jenks <mjenks1968@gmail.com>
Signed-off-by: Mark Jenks <mjenks1968@gmail.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/cx23885/cx23885-417.c
drivers/media/video/cx23885/cx23885-video.c