diff options
| author | Basavaraj Natikar <Basavaraj.Natikar@amd.com> | 2026-08-03 23:22:27 +0530 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-08-14 14:43:46 +0200 |
| commit | c57016bcf6d0b57cda5579e5d6856bd9bbe52a77 (patch) | |
| tree | d3e02333f5ff23e6c56d18ca18899806fdb4e72a /tools/perf/scripts/python/task-analyzer.py | |
| parent | 1a73a4e7673f577d8cb9911107694c124a3eae54 (diff) | |
HID: amd_sfh: Serialize access to the shared emp2 pointer
The SFH accessors reach the device through a file-global emp2 pointer
that is published at probe and cleared on remove. amd_get_sfh_info() is
exported and called from other modules on unrelated threads, so a reader
can observe a non-NULL emp2 and then race a concurrent unbind that clears
it and frees the device.
Serialize the emp2 publish/clear and all readers under a mutex, so a
reader either sees a live device for the whole access or sees NULL.
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
