Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219476
b: refs/heads/master
c: 90dc4cf
h: refs/heads/master
v: v3
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed Oct 22, 2010
1 parent ee95892 commit d0e027c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 578fcb8e5f3046493932105c404792a2fe0e066f
refs/heads/master: 90dc4cfa2076cdc4df4c2f5dd3cadeefd9557c2c
8 changes: 4 additions & 4 deletions trunk/drivers/media/IR/lirc_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ int lirc_unregister_driver(int minor)
wake_up_interruptible(&ir->buf->wait_poll);
mutex_lock(&ir->irctl_lock);
ir->d.set_use_dec(ir->d.data);
module_put(ir->d.owner);
module_put(ir->cdev.owner);
mutex_unlock(&ir->irctl_lock);
cdev_del(&ir->cdev);
} else {
Expand Down Expand Up @@ -446,12 +446,12 @@ int lirc_dev_fop_open(struct inode *inode, struct file *file)
goto error;
}

if (try_module_get(ir->d.owner)) {
if (try_module_get(ir->cdev.owner)) {
++ir->open;
retval = ir->d.set_use_inc(ir->d.data);

if (retval) {
module_put(ir->d.owner);
module_put(ir->cdev.owner);
--ir->open;
} else {
lirc_buffer_clear(ir->buf);
Expand Down Expand Up @@ -482,7 +482,7 @@ int lirc_dev_fop_close(struct inode *inode, struct file *file)
--ir->open;
if (ir->attached) {
ir->d.set_use_dec(ir->d.data);
module_put(ir->d.owner);
module_put(ir->cdev.owner);
} else {
lirc_irctl_cleanup(ir);
irctls[ir->d.minor] = NULL;
Expand Down

0 comments on commit d0e027c

Please sign in to comment.