Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7129d3ae authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/amdgpu: return -ENOSPC when running out of UVD handles



This is a minor interface change, but clearly won't break anything.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 0c0fdf14
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -662,7 +662,7 @@ static int amdgpu_uvd_cs_msg(struct amdgpu_uvd_cs_ctx *ctx,
		}

		DRM_ERROR("No more free UVD handles!\n");
		return -EINVAL;
		return -ENOSPC;

	case 1:
		/* it's a decode msg, calc buffer sizes */