drm/amdgpu: validate duplicates first
authorChristian König <christian.koenig@amd.com>
Mon, 11 Jan 2016 14:35:22 +0000 (15:35 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Jan 2016 17:22:59 +0000 (12:22 -0500)
commitd8e0cae645504a787b05abfb91afee8cd7fa1701
tree20758bba33a2bd997665565b3c0cfb789b8b4cb0
parenteceb8a1562db6fc3e1c21cd54a4be0189aa1d0e3
drm/amdgpu: validate duplicates first

Most VM BOs end up in the duplicates list, validate it
first make -ENOMEM less likely.

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