diff options
author | Laurent Gauthier <[email protected]> | 2020-09-09 00:11:49 +0200 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2020-09-09 08:47:38 +0200 |
commit | c27e08820bc6cb7d483a8d87589bdbbbf10f2306 (patch) | |
tree | 3a8df5680008936a243a2c3f9a76b9e1c11083a7 /scripts/gen_compile_commands.py | |
parent | fc3abb53250a90ba2150eebd182137c136f4d25a (diff) |
HID: hid-debug: fix nonblocking read semantics wrt EIO/ERESTARTSYS
When the file has been open in non-blocking mode, EIO or ERESTARTSYS
would never be returned even if they should (for example when device
has been unplugged, you want EIO and not EAGAIN to be returned).
Move the O_NONBLOCK check after other checks have been performed.
Based on similar to patches hidraw and hiddev by Founder Fang
<[email protected]> and Jiri Kosina <[email protected]>.
Signed-off-by: Laurent Gauthier <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions