Skip to content
Commit 22a7a24d authored by Christian König's avatar Christian König Committed by Sasha Levin
Browse files

drm/amdgpu: fix error handling in amdgpu_cs_process_fence_dep

[ Upstream commit 67d0859e

 ]

We always need to drop the ctx reference and should check
for errors first and then dereference the fence pointer.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarChunming Zhou <david1.zhou@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 08283dd5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment