drm/amdgpu: make UVD handle checking more strict
authorLeo Liu <leo.liu@amd.com>
Tue, 15 Sep 2015 14:38:38 +0000 (10:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Sep 2015 21:23:40 +0000 (17:23 -0400)
commit5146419e6feb99cfbc8dbf005dd2f62603e15efb
tree19f7ce488cff30bc0e9d198fff7970a78dfb0fa4
parent1ee4478a26cf55c8f8a6219d7e99f2b48959394d
drm/amdgpu: make UVD handle checking more strict

Invalid messages can crash the hw otherwise

Ported from radeon commit a1b403da70e038ca6c6c6fe434d1d873546873a3

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c