Commit e90f869c authored by Dima Zavin's avatar Dima Zavin Committed by Dmitry Torokhov

Input: evdev - if no events and non-block, return EAGAIN not 0

Signed-off-by: default avatarDima Zavin <dima@android.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 566cf5b6
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment