diff options
author | Marco Schluessler <marco@lordzodiac.de> | 2007-08-25 11:46:07 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 22:06:58 -0300 |
commit | 226835d7e0a1136bce2a0b923e0832ab47450a30 (patch) | |
tree | f14d15bad2912df747a3c6082aab9b09ec95a166 /drivers/media/dvb | |
parent | 0c12c1bfc432477e38ba76f680be4b3f55112a8e (diff) | |
download | op-kernel-dev-226835d7e0a1136bce2a0b923e0832ab47450a30.zip op-kernel-dev-226835d7e0a1136bce2a0b923e0832ab47450a30.tar.gz |
V4L/DVB (6104): dvb_ca_en50221: decrement module use count on error
decrement module use count on error
Signed-off-by: Marco Schluessler <marco@lordzodiac.de>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_ca_en50221.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_ca_en50221.c b/drivers/media/dvb/dvb-core/dvb_ca_en50221.c index 3f74795..5c7bcb8 100644 --- a/drivers/media/dvb/dvb-core/dvb_ca_en50221.c +++ b/drivers/media/dvb/dvb-core/dvb_ca_en50221.c @@ -1535,8 +1535,10 @@ static int dvb_ca_en50221_io_open(struct inode *inode, struct file *file) return -EIO; err = dvb_generic_open(inode, file); - if (err < 0) + if (err < 0) { + module_put(ca->pub->owner); return err; + } for (i = 0; i < ca->slot_count; i++) { |