drm/amdgpu: fix missing dma_fence_put in error path
authorChristian König <christian.koenig@amd.com>
Thu, 5 Jan 2023 10:27:16 +0000 (11:27 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 5 Jan 2023 19:34:58 +0000 (20:34 +0100)
commit41cc108b2451e0c65e8c9c9f6a3e103b62b60bb3
tree7e5d13ed11f1e8397d5b7ed3bdfe7860955c1d55
parented21f6c3fe423b17211fa5a85cd028621a749a2a
drm/amdgpu: fix missing dma_fence_put in error path

When the fence can't be added we need to drop the reference.

Suggested-by: Bert Karwatzki <spasswolf@web.de>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230105111703.52695-2-christian.koenig@amd.com
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c