commit | 587b1eb1629612189c8b278d4efee952bcf73b4f | [log] [tgz] |
---|---|---|
author | Dima Zavin <dima@android.com> | Tue Oct 04 22:31:48 2011 -0700 |
committer | Dima Zavin <dima@android.com> | Tue Oct 04 22:51:03 2011 -0700 |
tree | dc288d0cd9e342b31a60f1059f9aca8c2dfd6d2a | |
parent | 487319375187798f489ade0c4df1f14dc43aff63 [diff] [blame] |
input: evdev: if no events and non-block, return EAGAIN not 0 Change-Id: I5f0da721f74e5de111cffc7e7b375b72dd80e530 Signed-off-by: Dima Zavin <dima@android.com>
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index 13a741a..10ae1c9 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c
@@ -426,6 +426,8 @@ retval += input_event_size(); } + if (retval == 0 && file->f_flags & O_NONBLOCK) + retval = -EAGAIN; return retval; }