drm/amdgpu: fix issue with overlapping userptrs

commit cc1de6e800 upstream.

Otherwise we could try to evict overlapping userptr BOs in get_user_pages(),
leading to a possible circular locking dependency.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Christian König 2016-02-08 10:57:22 +01:00 • committed by Greg Kroah-Hartman
commit 4d6bc4fa32
3 changed files with 23 additions and 1 deletions