drm/amdgpu: return -ENOSPC when running out of UVD handles
authorChristian König <christian.koenig@amd.com>
Wed, 13 Jul 2016 19:24:59 +0000 (21:24 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Jul 2016 20:46:08 +0000 (16:46 -0400)
This is a minor interface change, but clearly won't break anything.

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c

index a0d39d281b4f3efaa4f3336fbfc8c38ef0f33bcf..b1bbe50f93e1a2c4aed439d4ca0dcf485ecd798b 100644 (file)
@@ -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 */