drm/amdgpu: fix userptr BO unpin bug (v2)
authormonk.liu <monk.liu@amd.com>
Thu, 7 May 2015 18:19:18 +0000 (14:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:25 +0000 (21:03 -0400)
commitdd08fae1e9b2466380d9447a0643c182cd142149
tree3849a6a2cf2c5a03dae1363c8d69a4ffe98fc19a
parent886712881da15b7f455c43a4ce4121f20035c0fa
drm/amdgpu: fix userptr BO unpin bug (v2)

sg could point to array of contigiouse page*, only free page could lead
to memory leak.

v2: use iterator

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