]> 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 06:26:09 +0000 (01:26 -0500)
commitcdf4f4a2f2500b0bb4e9cc3bc4ea5b3dd3798e2b
tree140cdd0ac457f2e39cbb12bf82a03cc35b4c01c3
parentd738b69ddecf381b11aa0157e16f2a2f1e8f8ef1
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