Skip to content

Commit

Permalink
V4L/DVB (8005): Fix OOPS if frontend is null
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Jun 26, 2008
1 parent fde6074 commit bf67cac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/video/saa7134/saa7134-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bf67cac

Please sign in to comment.