]> 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)
commite4f439e944acd4a28ed22885649309275506a494
tree378c4fbf96ef8ab239f2425956527798a4ec68e1
parente7ddb81490e43937fde296a79cca704e30a6c3c7
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