diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-07 14:54:10 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-26 14:58:41 -0400 |
commit | bf67cac1314ba29676fbac2decde0e2e0a8170f8 (patch) | |
tree | e133f45367d03b0d374f4941719ebae44ccaf153 /drivers/media | |
parent | fde60748d2f0345cabff20d25458c67d4ac06034 (diff) |
V4L/DVB (8005): Fix OOPS if frontend is null
Thanks to timf <timf@iinet.net.au> and Mike Galbraith <efault@gmx.de> to report
this issue.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-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; |