From: Christian König Date: Wed, 13 Jul 2016 19:24:59 +0000 (+0200) Subject: drm/amdgpu: return -ENOSPC when running out of UVD handles X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7129d3ae9dcffd7ad849b533b4a863a7f13cbb1b;p=linux-beck.git 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: Christian König Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index a0d39d281b4f..b1bbe50f93e1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c @@ -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 */