drm/amdgpu: fix amdgpu_bo_unreserve order in GEM_OP IOCTL v2
authorChristian König <christian.koenig@amd.com>
Fri, 28 Aug 2015 15:27:54 +0000 (17:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Sep 2015 16:19:53 +0000 (12:19 -0400)
commit4c28fb0b27ad58d772cb972564369b9ebdad0d6b
tree1694d3c5540f8133bb7a8bfa1a78edafb289c710
parent8221d706f4f39337e28644f333aefbca41ac0d18
drm/amdgpu: fix amdgpu_bo_unreserve order in GEM_OP IOCTL v2

No copy_(to|from)_user while BO is reserved.

v2: handle default path as well

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c