Skip to content
Commit 2872a9b5 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: evdev - properly handle read/write with count 0



According to the standard count 0 is special - no IO should happen but we
can check error conditions (device gone away, etc), and return 0 if there
are no errors. We used to return -EINVAL instead and we also could return 0
if an event was "stolen" by another thread.

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent dba42580
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