mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
input: evdev: if no events and non-block, return EAGAIN not 0
Change-Id: I5f0da721f74e5de111cffc7e7b375b72dd80e530 Signed-off-by: Dima Zavin <dima@android.com>
This commit is contained in:
parent
4873193751
commit
587b1eb162
|
|
@ -426,6 +426,8 @@ static ssize_t evdev_read(struct file *file, char __user *buffer,
|
|||
retval += input_event_size();
|
||||
}
|
||||
|
||||
if (retval == 0 && file->f_flags & O_NONBLOCK)
|
||||
retval = -EAGAIN;
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user