summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2006-09-27 00:16:50 -0400
committerSteven Toth <stoth@hauppauge.com>2006-09-27 00:16:50 -0400
commit7d188c20128b5bf1753a10976dcd5a7637ecb37a (patch)
tree07505fa1d6ded0cbdfb2d45add744e6c0d199074 /linux/drivers/media
parent4625e6d61a711d6e6ae0b140e73cb95acac7c86a (diff)
downloadmediapointer-dvb-s2-7d188c20128b5bf1753a10976dcd5a7637ecb37a.tar.gz
mediapointer-dvb-s2-7d188c20128b5bf1753a10976dcd5a7637ecb37a.tar.bz2
Fix for NULL pointer dereference oops during boot.
From: Steven Toth <stoth@hauppauge.com> 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 <stoth@hauppauge.com>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/cx88/cx88-i2c.c2
1 files changed, 1 insertions, 1 deletions
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);