]> 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 22:56:50 +0000 (17:56 -0500)
commit480ad5f6ead4a47b969aab6618573cd6822bb6a4
tree3601d219ae984e306f53162e9b87a2e2bb03ae35
parent5e0bcc7b88bcd081aaae6f481b10d9ab294fcb69
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>
(cherry picked from commit 6fa01b4335978051d2cd80841728fd63cc597970)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c