]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix error handling in amdgpu_cs_process_fence_dep
authorChristian König <christian.koenig@amd.com>
Tue, 30 Jul 2019 09:17:03 +0000 (11:17 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 04:48:33 +0000 (23:48 -0500)
commitb7d5fb67663d67027eae28982538407cf98390c9
tree52e0023de4d9fb3d161bc4121722fc9584fbf1f1
parent57fe1345291413d15f86aefd19a02de665dbae5b
drm/amdgpu: fix error handling in amdgpu_cs_process_fence_dep

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

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c