summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2026-11-09 11:59:43 -0800
committerJiri Kosina <jkosina@suse.com>2026-11-19 21:32:03 +0100
commitabe10ad9c5fd868553b1262df403d5aaea3eff64 (patch)
tree4c87709bcb17a5f21516b1979ffdd2690977b9a7 /tools/perf/scripts/python
parente624a56578e551b77ee66eef74dc2efcd42deb08 (diff)
HID: sensor-hub: Synchronize callback removal with raw events
Raw-event processing holds pdata->lock across callback lookup and invocation, and takes dyn_callback_lock during lookup. Removal must prevent both active callbacks and future lookups before client state can be released. Take pdata->lock before dyn_callback_lock, matching raw-event order, and unlink the callback while holding both locks. This ensures active raw-event callbacks have finished and prevents future lookups. Fixes: 401ca24fb34a ("HID: sensors: introduce sensor framework") Reported-by: Semyon Maryasin <simeon@maryasin.name> Closes: https://lore.kernel.org/all/CAM2dg7ewfVJSP4rFyhkCB1Rmd1+X56sAg=eUdbPthG2xrLqwQQ@mail.gmail.com/ Reviewed-by: Joshua Crofts <crofts@kernel.org> Tested-by: Semyon Maryasin <simeon@maryasin.name> Tested-by: Zhang Lixu <lixu.zhang@intel.com> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions