OSDN Git Service

V4L/DVB (4679): Fix for NULL pointer dereference oops during boot.
[linux-kernel-docs/linux-2.6.git] / drivers / media / video / cx88 / cx88-i2c.c
index 6e705a2..88af23a 100644 (file)
@@ -145,7 +145,7 @@ void cx88_call_i2c_clients(struct cx88_core *core, unsigned int cmd, void *arg)
        if (0 != core->i2c_rc)
                return;
 
-       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);