Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=226835d7e0a1136bce2a0b923e0832ab47450a30
Commit:     226835d7e0a1136bce2a0b923e0832ab47450a30
Parent:     0c12c1bfc432477e38ba76f680be4b3f55112a8e
Author:     Marco Schluessler <[EMAIL PROTECTED]>
AuthorDate: Sat Aug 25 11:46:07 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 22:06:58 2007 -0300

    V4L/DVB (6104): dvb_ca_en50221: decrement module use count on error
    
    decrement module use count on error
    
    Signed-off-by: Marco Schluessler <[EMAIL PROTECTED]>
    Signed-off-by: Oliver Endriss <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 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++) {
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to