]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdd11f63b330b26cce2e0dca75d9e17646b75635f
tree20758bba33a2bd997665565b3c0cfb789b8b4cb0
parent5254b3b08f63f6052f2499694d52c90b73124201
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