aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/dvb-core/dvb_ca_en50221.c4
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 3f7479557919..5c7bcb8393d2 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)
1535 return -EIO; 1535 return -EIO;
1536 1536
1537 err = dvb_generic_open(inode, file); 1537 err = dvb_generic_open(inode, file);
1538 if (err < 0) 1538 if (err < 0) {
1539 module_put(ca->pub->owner);
1539 return err; 1540 return err;
1541 }
1540 1542
1541 for (i = 0; i < ca->slot_count; i++) { 1543 for (i = 0; i < ca->slot_count; i++) {
1542 1544