diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-07 12:54:10 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-07 12:54:10 -0300 |
commit | 2e89b3ff9140f59435aa3a2e20aabb355ba8f6af (patch) | |
tree | 0b7d5c8c6a0432a6ac63865778c9f5595faef974 /linux/drivers/media/video/saa7134/saa7134-dvb.c | |
parent | 043652cb394d66b04a1f5a958a5a0d1aa9db8565 (diff) | |
download | mediapointer-dvb-s2-2e89b3ff9140f59435aa3a2e20aabb355ba8f6af.tar.gz mediapointer-dvb-s2-2e89b3ff9140f59435aa3a2e20aabb355ba8f6af.tar.bz2 |
Fix OOPS if frontend is null
From: Mauro Carvalho Chehab <mchehab@infradead.org>
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 'linux/drivers/media/video/saa7134/saa7134-dvb.c')
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-dvb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-dvb.c b/linux/drivers/media/video/saa7134/saa7134-dvb.c index 2659d2a60..a5a2d5905 100644 --- a/linux/drivers/media/video/saa7134/saa7134-dvb.c +++ b/linux/drivers/media/video/saa7134/saa7134-dvb.c @@ -1345,7 +1345,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; |