summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2026-10-22 08:44:52 +0300
committerBenjamin Tissoires <bentiss@kernel.org>2026-10-28 10:36:39 +0100
commit6569d814fa49384e3e0f4f41947ecfabf2eb93c8 (patch)
treec1e04b8bf1ae6f59fb85b97bb65e7e91343dc01a /tools/perf/scripts/python/task-analyzer.py
parent2c2fe95ab19b09bef7391e3e5cdf8146d09792b6 (diff)
HID: roccat: use atomic_t for device status flag
In roccat_disconnect(), per-device 'exist' status flag is cleared with 'devices_lock' locked but both roccat_read() and roccat_poll() checks this flag unlocked. To avoid data races, convert the flag to atomic_t and introduce the convenient roccat_device_available() wrapper. Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru> Link: https://patch.msgid.link/20261022054454.238343-2-dmantipov@yandex.ru Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions