drm/amdgpu: check context id for context switching (v2)
authorJammy Zhou <Jammy.Zhou@amd.com>
Fri, 8 May 2015 14:18:47 +0000 (22:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:29 +0000 (21:03 -0400)
commit72efa7ebdea084b96f25021d0ba9c29074c2906f
treea209c2b373636fb047f4b0b8cbdbf0214f7d3998
parent66b3cf2ab38f47db2d07fe24a00972fbf822cd74
drm/amdgpu: check context id for context switching (v2)

check the filp is not robust, and sometimes different contexts may
have same filp value.

v2: check both filp and ctx_id

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