Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282414
b: refs/heads/master
c: e90f869
h: refs/heads/master
v: v3
  • Loading branch information
Dima Zavin authored and Dmitry Torokhov committed Dec 30, 2011
1 parent 47ceeb4 commit 85dbe45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 566cf5b6e34504aaccb76167ecccd7e7e69e6456
refs/heads/master: e90f869cae3b4aedf0f6d2ca8048d60245ee77f7
3 changes: 3 additions & 0 deletions trunk/drivers/input/evdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ static ssize_t evdev_read(struct file *file, char __user *buffer,
retval += input_event_size();
}

if (retval == 0 && (file->f_flags & O_NONBLOCK))
return -EAGAIN;

return retval;
}

Expand Down

0 comments on commit 85dbe45

Please sign in to comment.