summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorArvind Yadav <Arvind.Yadav@amd.com>2025-05-15 10:14:46 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-05-16 20:38:10 +0300
commit13d0724f0ffe92971ef5a0da819f75c76c01d92e (patch)
tree59c08b25168ef64eab19dafbcdbdd5e1a7843a03 /scripts/lib/kdoc/kdoc_parser.py
parentcc473057bbcc937b8a40792fa8509878ad3d401f (diff)
downloadlinux-13d0724f0ffe92971ef5a0da819f75c76c01d92e.tar.xz
drm/amdgpu: fix use-after-unlock in eviction fence destroy
The eviction fence destroy path incorrectly calls dma_fence_put() on evf_mgr->ev_fence after releasing the ev_fence_lock. This introduces a potential use-after-unlock or race because another thread concurrently modifies evf_mgr->ev_fence. Fix this by grabbing a local reference to evf_mgr->ev_fence under the lock and using that for dma_fence_put() after waiting. Cc: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Sunil Khatri <sunil.khatri@amd.com> Signed-off-by: Arvind Yadav <Arvind.Yadav@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions