drm/amdgpu: fix amdgpu_job_free_resources v2
authorChristian König <christian.koenig@amd.com>
Thu, 12 Jan 2023 13:46:00 +0000 (14:46 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Jan 2023 04:16:35 +0000 (23:16 -0500)
commit74ea8e78ab349514c9f4df0be1189d91267d750d
tree0ef4fcc1c38640eaa2452b84fcb7eb71143c304d
parent973a9c810c785ac270a6d50d8cf862b0c1643a10
drm/amdgpu: fix amdgpu_job_free_resources v2

It can be that neither fence were initialized when we run out of UVD
streams for example.

v2: fix typo breaking compile

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2324
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.1.x
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c