summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorLinmao Li <lilinmao@kylinos.cn>2026-07-20 14:12:59 +0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-07-22 11:53:56 -0700
commitc83e79c0842ed29860648bcce5022ef0ba5001c6 (patch)
treeb8c4e1ab1b412c2bcb3bc994ce0bf0155e029292 /tools/perf/scripts/python/bin
parentadea84ee6cdea611146c4251d3c1616f5a09feca (diff)
Input: byd - synchronize timer deletion before freeing private data
byd_disconnect() uses timer_delete() before freeing the driver's private data. This does not wait for a running byd_clear_touch() callback, which dereferences the private data and its psmouse pointer. A callback racing with disconnect can therefore access the private data after it has been freed. The timer can also still be re-armed by byd_process_byte() while the disconnect is in progress. Use timer_shutdown_sync() before freeing the private data: it waits for a running callback and turns any later re-arm attempt into a no-op. Fixes: 2d5f5611dd0d ("Input: byd - enable absolute mode") Cc: stable@vger.kernel.org Signed-off-by: Linmao Li <lilinmao@kylinos.cn> Link: https://patch.msgid.link/20260720061259.1601281-1-lilinmao@kylinos.cn Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions