aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorLaurent Gauthier <[email protected]>2020-09-09 00:11:49 +0200
committerJiri Kosina <[email protected]>2020-09-09 08:47:38 +0200
commitc27e08820bc6cb7d483a8d87589bdbbbf10f2306 (patch)
tree3a8df5680008936a243a2c3f9a76b9e1c11083a7 /tools/perf/scripts/python/export-to-sqlite.py
parentfc3abb53250a90ba2150eebd182137c136f4d25a (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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions