* [linux-dvb] [PATCH] cx23885 Fix for oops if you install HVR-1250 and HVR-1800 in the same computer.
@ 2009-01-06 2:29 Mark Jenks
2009-01-13 14:52 ` Steven Toth
0 siblings, 1 reply; 2+ messages in thread
From: Mark Jenks @ 2009-01-06 2:29 UTC (permalink / raw)
To: linux-dvb
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
Signed-off-by: Mark Jenks <mjenks1968@gmail.com>
--- a/linux/drivers/media/video/
cx23885/cx23885-417.c 2009-01-01 14:27:15.000000000 -0600
+++ b/linux/drivers/media/video/cx23885/cx23885-417.c 2009-01-01
14:27:39.000000000 -0600
@@ -1593,7 +1593,8 @@
lock_kernel();
list_for_each(list, &cx23885_devlist) {
h = list_entry(list, struct cx23885_dev, devlist);
- if (h->v4l_device->minor == minor) {
+ if (h->v4l_device &&
+ h->v4l_device->minor == minor) {
dev = h;
break;
}
--- a/linux/drivers/media/video/cx23885/cx23885-video.c Fri Dec 26
08:07:39 2008 -0200
+++ b/linux/drivers/media/video/cx23885/cx23885-video.c Sun Dec 28
16:34:04 2008 -0500
@@ -786,7 +786,8 @@ static int video_open(struct inode *inod
lock_kernel();
list_for_each(list, &cx23885_devlist) {
h = list_entry(list, struct cx23885_dev, devlist);
- if (h->video_dev->minor == minor) {
+ if (h->video_dev &&
+ h->video_dev->minor == minor) {
dev = h;
type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
}
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-dvb] [PATCH] cx23885 Fix for oops if you install HVR-1250 and HVR-1800 in the same computer.
2009-01-06 2:29 [linux-dvb] [PATCH] cx23885 Fix for oops if you install HVR-1250 and HVR-1800 in the same computer Mark Jenks
@ 2009-01-13 14:52 ` Steven Toth
0 siblings, 0 replies; 2+ messages in thread
From: Steven Toth @ 2009-01-13 14:52 UTC (permalink / raw)
To: Mark Jenks; +Cc: linux-dvb
Mark Jenks wrote:
> 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
>
> Signed-off-by: Mark Jenks <mjenks1968@gmail.com>
This makes sense, thanks for the patch.
- Steve
_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead linux-media@vger.kernel.org
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-13 14:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-06 2:29 [linux-dvb] [PATCH] cx23885 Fix for oops if you install HVR-1250 and HVR-1800 in the same computer Mark Jenks
2009-01-13 14:52 ` Steven Toth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox