summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorOliver Endriss <o.endriss@gmx.de>2007-08-25 16:46:07 +0200
committerOliver Endriss <o.endriss@gmx.de>2007-08-25 16:46:07 +0200
commit9e89f654688c18f664d995f64b1c5d3dce9989fc (patch)
treed7e953570f0c1e1ad073dc789690823a02ff20b0 /linux
parentbaac871567e367295adce69440965ca1279ce647 (diff)
downloadmediapointer-dvb-s2-9e89f654688c18f664d995f64b1c5d3dce9989fc.tar.gz
mediapointer-dvb-s2-9e89f654688c18f664d995f64b1c5d3dce9989fc.tar.bz2
dvb_ca_en50221: decrement module use count on error
From: Marco Schluessler <marco@lordzodiac.de> decrement module use count on error Signed-off-by: Marco Schluessler <marco@lordzodiac.de> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c b/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
index e66a82289..4beaee354 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
@@ -1536,8 +1536,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++) {