]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Fix locking bugs in error paths
authorBart Van Assche <bvanassche@acm.org>
Mon, 23 Feb 2026 21:50:23 +0000 (13:50 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 25 Feb 2026 21:56:11 +0000 (16:56 -0500)
commit6fa01b4335978051d2cd80841728fd63cc597970
treec07f8d5ddcfdd890a6bbd0303527113d566be84e
parent270258ba320beb99648dceffb67e86ac76786e55
drm/amdgpu: Fix locking bugs in error paths

Do not unlock psp->ras_context.mutex if it has not been locked. This has
been detected by the Clang thread-safety analyzer.

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: YiPeng Chai <YiPeng.Chai@amd.com>
Cc: Hawking Zhang <Hawking.Zhang@amd.com>
Cc: amd-gfx@lists.freedesktop.org
Fixes: b3fb79cda568 ("drm/amdgpu: add mutex to protect ras shared memory")
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c