drm/amdgpu: validate the context id in the dependencies
authorChristian König <christian.koenig@amd.com>
Mon, 6 Jul 2015 17:42:10 +0000 (19:42 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jul 2015 16:39:38 +0000 (12:39 -0400)
commit76a1ea618f01b2bf5a325832d1c273c039c4ea81
treefab6c23af9e4fcefb486767e5ca5e50d3ed67fb6
parent12f1384da650bdb835fff63e66fe815ea882fc0e
drm/amdgpu: validate the context id in the dependencies

Just to make sure userspace don't send nonsense to the kernel.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c