diff options
author | Armin Wolf <[email protected]> | 2024-04-02 16:30:57 +0200 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2024-04-08 17:45:35 +0200 |
commit | 290680c2da8061e410bcaec4b21584ed951479af (patch) | |
tree | c2c94277de837f712d5c2bbe2aaf38f1f728f5da /tools/perf/scripts/python/stackcollapse.py | |
parent | c347fd4fe84ab831db8b4361977437b587526165 (diff) |
platform/x86: xiaomi-wmi: Fix race condition when reporting key events
Multiple WMI events can be received concurrently, so multiple instances
of xiaomi_wmi_notify() can be active at the same time. Since the input
device is shared between those handlers, the key input sequence can be
disturbed.
Fix this by protecting the key input sequence with a mutex.
Compile-tested only.
Fixes: edb73f4f0247 ("platform/x86: wmi: add Xiaomi WMI key driver")
Signed-off-by: Armin Wolf <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions