drm/radeon: fix userptr BO unpin bug v3
authormonk.liu <monk.liu@amd.com>
Tue, 5 May 2015 07:24:17 +0000 (09:24 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 May 2015 15:00:15 +0000 (11:00 -0400)
commitdb12973cd581d4e79f4aadd0960948f268d15af7
tree5c373fbc494101b320299d5f9fce475e5d7bbacc
parentd73a824acc705571c0f47596326d7967fba9a1d9
drm/radeon: fix userptr BO unpin bug v3

Fixing a memory leak with userptrs.

v2: clean up the loop, use an iterator instead
v3: remove unused variable

Signed-off-by: monk.liu <monk.liu@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
CC: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_ttm.c