From: Dmitry Torokhov Date: Wed, 2 May 2012 07:13:37 +0000 (-0700) Subject: Input: evdev - properly handle read/write with count 0 X-Git-Tag: v3.5-rc1~103^2^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2872a9b521ac936c7a8525a8c2bdfb9b4ccf5cfc;p=pandora-kernel.git 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 --- Reading git-diff-tree failed