Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202092
b: refs/heads/master
c: 69c271f
h: refs/heads/master
v: v3
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent bd94919 commit ffef5eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 89d328d5782cb7efebe733fb994aac4bc64c255a
refs/heads/master: 69c271f33b949a7b1cbe6f7f39ce3db9e80997a2
5 changes: 4 additions & 1 deletion trunk/drivers/media/IR/lirc_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,9 @@ ssize_t lirc_dev_fop_read(struct file *file,

if (mutex_lock_interruptible(&ir->irctl_lock)) {
ret = -ERESTARTSYS;
break;
remove_wait_queue(&ir->buf->wait_poll, &wait);
set_current_state(TASK_RUNNING);
goto out_unlocked;
}

if (!ir->attached) {
Expand All @@ -676,6 +678,7 @@ ssize_t lirc_dev_fop_read(struct file *file,
set_current_state(TASK_RUNNING);
mutex_unlock(&ir->irctl_lock);

out_unlocked:
dev_dbg(ir->d.dev, LOGHEAD "read result = %s (%d)\n",
ir->d.name, ir->d.minor, ret ? "-EFAULT" : "OK", ret);

Expand Down

0 comments on commit ffef5eb

Please sign in to comment.