]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c49d87e4552c8d46d26f8c1edb9d4ef505025eb
tree378c4fbf96ef8ab239f2425956527798a4ec68e1
parentbd2e4bc659b5f241f3b6bb36901f4c658f5803cc
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