aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSean Young <[email protected]>2018-04-12 16:28:39 -0400
committerMauro Carvalho Chehab <[email protected]>2018-04-20 09:20:45 -0400
commit53a62800efb2f0ebc1972cab242461ae8c57bfd4 (patch)
tree1b5e63dc0512e83a27e907582e69ac8bf2c952cc /tools/perf/scripts/python/export-to-sqlite.py
parentcb5bd0575c41ac34c62a7784da7232d1c90e6eca (diff)
media: rc: mce_kbd decoder: fix race condition
The MCE keyboard sends both key down and key up events. We have a timeout handler mce_kbd_rx_timeout() in case the keyup event is never received; however, this may race with new key down events from occurring. The race is that key down scancode arrives and key down events are generated. The timeout handler races this and generates key up events straight afterwards. Since the keyboard generates scancodes every 100ms, most likely the keys will be repeated 100ms later, and now we have new key down events and the user sees duplicate key presses. Reported-by: Matthias Reichl <[email protected]> Signed-off-by: Sean Young <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions