summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-11 08:29:44 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-11 08:29:44 -0300
commitab30f3b84e41060d3e038b977b5fd2a3ff045768 (patch)
tree82525c1c1bd7254562a4a65e509fcd4fb592c69d /linux/drivers/media/video/cx88
parent0010cbf0481fc24cd2caef60f52e2db0fed03d8f (diff)
downloadmediapointer-dvb-s2-ab30f3b84e41060d3e038b977b5fd2a3ff045768.tar.gz
mediapointer-dvb-s2-ab30f3b84e41060d3e038b977b5fd2a3ff045768.tar.bz2
cx88/saa7134: Fix: avoid OOPS on module unload
From: Mauro Carvalho Chehab <mchehab@infradead.org> If frontend is not attached, both cx88-dvb and saa7134-dvb don't register DVB. However, dvb unregister were inconditionally called. Due to that, an OOPS is generated. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/cx88')
-rw-r--r--linux/drivers/media/video/cx88/cx88-dvb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-dvb.c b/linux/drivers/media/video/cx88/cx88-dvb.c
index 3cb951108..a3815d834 100644
--- a/linux/drivers/media/video/cx88/cx88-dvb.c
+++ b/linux/drivers/media/video/cx88/cx88-dvb.c
@@ -961,7 +961,8 @@ static int cx8802_dvb_remove(struct cx8802_driver *drv)
struct cx8802_dev *dev = drv->core->dvbdev;
/* dvb */
- videobuf_dvb_unregister(&dev->dvb);
+ if (dev->dvb.frontend)
+ videobuf_dvb_unregister(&dev->dvb);
vp3054_i2c_remove(dev);