Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328515
b: refs/heads/master
c: f40033a
h: refs/heads/master
i:
  328513: 99aa3e4
  328511: 8ddfb18
v: v3
  • Loading branch information
David Herrmann authored and Dmitry Torokhov committed Aug 22, 2012
1 parent 5d0140c commit 7c99865
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: 929d1af5478dec82903e05aa9662a4ec12ad655b
refs/heads/master: f40033acc2d14acecd1b27a79dc8a0ad437e619a
3 changes: 3 additions & 0 deletions trunk/drivers/input/misc/uinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@ static ssize_t uinput_read(struct file *file, char __user *buffer, size_t count,
struct input_event event;
int retval = 0;

if (count != 0 && count < input_event_size())
return -EINVAL;

if (udev->state != UIST_CREATED)
return -ENODEV;

Expand Down

0 comments on commit 7c99865

Please sign in to comment.