summaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-06-07 20:54:10 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-06-26 20:58:41 +0200
commitbf67cac1314ba29676fbac2decde0e2e0a8170f8 (patch)
treee133f45367d03b0d374f4941719ebae44ccaf153 /drivers/media/video
parentV4L/DVB (8004): Fix INPUT dependency at budget-ci (diff)
downloadlinux-bf67cac1314ba29676fbac2decde0e2e0a8170f8.tar.xz
linux-bf67cac1314ba29676fbac2decde0e2e0a8170f8.zip
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/video')
-rw-r--r--drivers/media/video/saa7134/saa7134-dvb.c3
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)
return ret;
dettach_frontend:
- dvb_frontend_detach(dev->dvb.frontend);
+ if (dev->dvb.frontend)
+ dvb_frontend_detach(dev->dvb.frontend);
dev->dvb.frontend = NULL;
return -1;