Skip to content

Commit

Permalink
V4L/DVB (6104): dvb_ca_en50221: decrement module use count on error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marco Schluessler authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 0c12c1b commit 226835d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/dvb/dvb-core/dvb_ca_en50221.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {

Expand Down

0 comments on commit 226835d

Please sign in to comment.