drm/amdgpu: free userptrs even if GTT isn't bound
authorChristian König <christian.koenig@amd.com>
Thu, 22 Sep 2016 12:19:50 +0000 (14:19 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Sep 2016 20:16:25 +0000 (16:16 -0400)
commit85a4b5798f587eab48327aa156fd5c22358e9086
tree378c4fbf96ef8ab239f2425956527798a4ec68e1
parent3d5f4d4770a4084ccfc5ed2fff4b2a0017e7d558
drm/amdgpu: free userptrs even if GTT isn't bound

This fixes a memory leak since binding GTT only on demand.

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