diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-05-02 09:13:37 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-05-02 09:23:58 +0200 |
commit | 2872a9b521ac936c7a8525a8c2bdfb9b4ccf5cfc (patch) | |
tree | 613f1456fe437419bbc014f84d7d3c2e73568743 /drivers/input/misc/twl6040-vibra.c | |
parent | Input: evdev - properly access RCU-protected 'grab' data (diff) | |
download | linux-2872a9b521ac936c7a8525a8c2bdfb9b4ccf5cfc.tar.xz linux-2872a9b521ac936c7a8525a8c2bdfb9b4ccf5cfc.zip |
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: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/misc/twl6040-vibra.c')
0 files changed, 0 insertions, 0 deletions