From 7d188c20128b5bf1753a10976dcd5a7637ecb37a Mon Sep 17 00:00:00 2001 From: Steven Toth Date: Wed, 27 Sep 2006 00:16:50 -0400 Subject: Fix for NULL pointer dereference oops during boot. From: Steven Toth A fix for intermittent oops's during boot which occurs in cx88_call_i2c_clients when dvb_attach is bringing up the frontend. Signed-off-by: Steven Toth --- linux/drivers/media/video/cx88/cx88-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux') diff --git a/linux/drivers/media/video/cx88/cx88-i2c.c b/linux/drivers/media/video/cx88/cx88-i2c.c index 02564deb9..35a229130 100644 --- a/linux/drivers/media/video/cx88/cx88-i2c.c +++ b/linux/drivers/media/video/cx88/cx88-i2c.c @@ -155,7 +155,7 @@ void cx88_call_i2c_clients(struct cx88_core *core, unsigned int cmd, void *arg) return; #ifdef HAVE_VIDEO_BUF_DVB - if (core->dvbdev) { + if ( (core->dvbdev) && (core->dvbdev->dvb.frontend) ) { if (core->dvbdev->dvb.frontend->ops.i2c_gate_ctrl) core->dvbdev->dvb.frontend->ops.i2c_gate_ctrl(core->dvbdev->dvb.frontend, 1); -- cgit v1.2.3