The patch number 9230 was added via Steven Toth <[EMAIL PROTECTED]> to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward compatible with older kernels. Compatibility modifications will be removed before inclusion into the mainstream Kernel If anyone has any objections, please let us know by sending a message to: [EMAIL PROTECTED] ------ From: Steven Toth <[EMAIL PROTECTED]> cx23885: MFE related OOPS fix Bug: the tree generated an oops when the cx23885 was laoded. This avoids the oops by ensuring the mutex is correctly initialised before it's used. Priority: normal Signed-off-by: Steven Toth <[EMAIL PROTECTED]> --- linux/drivers/media/video/cx23885/cx23885-core.c | 4 ++++ linux/drivers/media/video/cx23885/cx23885-dvb.c | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff -r e17461352ece -r 1b2771d04046 linux/drivers/media/video/cx23885/cx23885-core.c --- a/linux/drivers/media/video/cx23885/cx23885-core.c Sat Oct 11 15:57:59 2008 +0100 +++ b/linux/drivers/media/video/cx23885/cx23885-core.c Sat Oct 11 11:25:25 2008 -0400 @@ -644,6 +644,10 @@ static int cx23885_init_tsport(struct cx port->mpegq.timeout.data = (unsigned long)port; init_timer(&port->mpegq.timeout); + mutex_init(&port->frontends.lock); + INIT_LIST_HEAD(&port->frontends.frontend.felist); + port->frontends.active_fe_id = 0; + switch(portno) { case 1: port->reg_gpcnt = VID_B_GPCNT; diff -r e17461352ece -r 1b2771d04046 linux/drivers/media/video/cx23885/cx23885-dvb.c --- a/linux/drivers/media/video/cx23885/cx23885-dvb.c Sat Oct 11 15:57:59 2008 +0100 +++ b/linux/drivers/media/video/cx23885/cx23885-dvb.c Sat Oct 11 11:25:25 2008 -0400 @@ -314,11 +314,6 @@ static int dvb_register(struct cx23885_t struct cx23885_dev *dev = port->dev; struct cx23885_i2c *i2c_bus = NULL; struct videobuf_dvb_frontend *fe0; - - /* FIXME: add support for multi-frontend */ - mutex_init(&port->frontends.lock); - INIT_LIST_HEAD(&port->frontends.frontend.felist); - port->frontends.active_fe_id = 0; printk(KERN_INFO "%s() allocating 1 frontend\n", __func__); --- Patch is available at: http://linuxtv.org/hg/v4l-dvb/rev/1b2771d04046774f83d7dcdac511752ec8ee92f3 _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits