Commit bf67cac1 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

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: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent fde60748
...@@ -1338,6 +1338,7 @@ static int dvb_init(struct saa7134_dev *dev) ...@@ -1338,6 +1338,7 @@ static int dvb_init(struct saa7134_dev *dev)
return ret; return ret;
dettach_frontend: dettach_frontend:
if (dev->dvb.frontend)
dvb_frontend_detach(dev->dvb.frontend); dvb_frontend_detach(dev->dvb.frontend);
dev->dvb.frontend = NULL; dev->dvb.frontend = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment