Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Commit 0e5ee33

Browse files
jameszhu-amdalexdeucher
authored andcommitted
drm/amdgpu:Correct max uvd handles
Max uvd handles should use adev->uvd.max_handles instead of AMDGPU_MAX_UVD_HANDLES here. Signed-off-by: James Zhu <James.Zhu@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent abca240 commit 0e5ee33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ int amdgpu_uvd_suspend(struct amdgpu_device *adev)
303303
if (atomic_read(&adev->uvd.handles[i]))
304304
break;
305305

306-
if (i == AMDGPU_MAX_UVD_HANDLES)
306+
if (i == adev->uvd.max_handles)
307307
return 0;
308308

309309
size = amdgpu_bo_size(adev->uvd.vcpu_bo);

0 commit comments

Comments
 (0)