mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 06:52:07 +00:00
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>
This commit is contained in:
parent
fde60748d2
commit
bf67cac131
1 changed files with 2 additions and 1 deletions
|
@ -1338,7 +1338,8 @@ static int dvb_init(struct saa7134_dev *dev)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
dettach_frontend:
|
dettach_frontend:
|
||||||
dvb_frontend_detach(dev->dvb.frontend);
|
if (dev->dvb.frontend)
|
||||||
|
dvb_frontend_detach(dev->dvb.frontend);
|
||||||
dev->dvb.frontend = NULL;
|
dev->dvb.frontend = NULL;
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue