diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-11 10:29:44 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:08:00 -0400 |
commit | 9950c1b5b4b86d4aae12853c2f0a0ef11d976764 (patch) | |
tree | 50ad703f54ea15f738dfc54c471b89fcdeca7dc0 /drivers/media/video/saa7134/saa7134-dvb.c | |
parent | fb7b37cf913c19dbdbb9bf3e653924e126b4007e (diff) |
V4L/DVB (7537): cx88/saa7134: Fix: avoid OOPS on module unload
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 'drivers/media/video/saa7134/saa7134-dvb.c')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-dvb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c index 5c84f45ecbe2..e5c3569dd2c8 100644 --- a/drivers/media/video/saa7134/saa7134-dvb.c +++ b/drivers/media/video/saa7134/saa7134-dvb.c | |||
@@ -1302,7 +1302,8 @@ static int dvb_fini(struct saa7134_dev *dev) | |||
1302 | } | 1302 | } |
1303 | } | 1303 | } |
1304 | } | 1304 | } |
1305 | videobuf_dvb_unregister(&dev->dvb); | 1305 | if (dev->dvb.frontend) |
1306 | videobuf_dvb_unregister(&dev->dvb); | ||
1306 | return 0; | 1307 | return 0; |
1307 | } | 1308 | } |
1308 | 1309 | ||