drm/amdgpu: validate shadow before restoring from it
authorRoger.He <Hongbo.He@amd.com>
Fri, 21 Apr 2017 05:08:43 +0000 (13:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Apr 2017 21:33:08 +0000 (17:33 -0400)
commit82521316395a37a2ec1d7e396c055f3c7de9d93b
tree45fa90db68afefba7d11671ee969e13eea354cc8
parent4a9ed1009b8b01409bdda899c0ff0d7fd2c6d094
drm/amdgpu: validate shadow before restoring from it

Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Roger.He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h