drm/amdgpu: Add put fence in amdgpu_fence_driver_clear_job_fences
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Mon, 20 Jun 2022 17:08:52 +0000 (13:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Jun 2022 15:24:18 +0000 (11:24 -0400)
commitdd70748eda3f63217d5284f48651239a9721245e
tree83aad48ab14e07d2e941b3012acb0cc45baa5ce1
parent5c4904ac34b76eb58abc15a52603ee59bf8be85d
drm/amdgpu: Add put fence in amdgpu_fence_driver_clear_job_fences

This function should drop the fence refcount when it extracts the
fence from the fence array, just as it's done in amdgpu_fence_process.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c