]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amdgpu: move taking mmap_sem into get_user_pages v2
authorChristian König <christian.koenig@amd.com>
Sun, 3 Sep 2017 13:22:06 +0000 (15:22 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:24:00 +0000 (14:24 -0400)
commitb72cf4fca2bb786e20864b5e8755105aa9626fb4
tree0f3f739d3fdbe0b8c2a7510689f8fdf482da295d
parent862095237c392887819e98018d6dc187d8c78726
drm/amdgpu: move taking mmap_sem into get_user_pages v2

This didn't helped as intended, just simplify the code.

v2: unlock mmap_sem in the error path as well

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