diff options
-rw-r--r-- | drivers/media/video/saa7134/saa7134-dvb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c index 469f93aac008..726f01ccedf0 100644 --- a/drivers/media/video/saa7134/saa7134-dvb.c +++ b/drivers/media/video/saa7134/saa7134-dvb.c | |||
@@ -1338,7 +1338,8 @@ static int dvb_init(struct saa7134_dev *dev) | |||
1338 | return ret; | 1338 | return ret; |
1339 | 1339 | ||
1340 | dettach_frontend: | 1340 | dettach_frontend: |
1341 | dvb_frontend_detach(dev->dvb.frontend); | 1341 | if (dev->dvb.frontend) |
1342 | dvb_frontend_detach(dev->dvb.frontend); | ||
1342 | dev->dvb.frontend = NULL; | 1343 | dev->dvb.frontend = NULL; |
1343 | 1344 | ||
1344 | return -1; | 1345 | return -1; |