diff options
-rw-r--r-- | drivers/media/video/cx88/cx88-dvb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c index cf6b9b05f496..d72b817bf886 100644 --- a/drivers/media/video/cx88/cx88-dvb.c +++ b/drivers/media/video/cx88/cx88-dvb.c | |||
@@ -461,6 +461,13 @@ static int attach_xc3028(u8 addr, struct cx8802_dev *dev) | |||
461 | .video_dev = dev->core, | 461 | .video_dev = dev->core, |
462 | }; | 462 | }; |
463 | 463 | ||
464 | if (!dev->dvb.frontend) { | ||
465 | printk(KERN_ERR "%s/2: dvb frontend not attached. " | ||
466 | "Can't attach xc3028\n", | ||
467 | dev->core->name); | ||
468 | return -EINVAL; | ||
469 | } | ||
470 | |||
464 | fe = dvb_attach(xc2028_attach, dev->dvb.frontend, &cfg); | 471 | fe = dvb_attach(xc2028_attach, dev->dvb.frontend, &cfg); |
465 | if (!fe) { | 472 | if (!fe) { |
466 | printk(KERN_ERR "%s/2: xc3028 attach failed\n", | 473 | printk(KERN_ERR "%s/2: xc3028 attach failed\n", |