diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2016-10-23 18:31:45 (GMT) |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-10-24 21:00:51 (GMT) |
commit | 2d7c17be00e0dce3bc1a092a2c277a9f86c69ca9 (patch) | |
tree | 8eda2105b6427bb3b718a210b6b3ae9288cb3245 /drivers/gpu/drm/amd/amdgpu | |
parent | a053fb7e512c77f0742bceb578b10025256e1911 (diff) | |
download | linux-2d7c17be00e0dce3bc1a092a2c277a9f86c69ca9.tar.xz |
drm/amdgpu: fix a vm_flush fence leak
Looks like .last_flush reference is left at teardown.
Leak reported by CONFIG_SLUB_DEBUG.
Fixes: 41d9eb2c5a2a ("drm/amdgpu: add a fence after the VM flush")
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 06f2432..968c426 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -1758,5 +1758,6 @@ void amdgpu_vm_manager_fini(struct amdgpu_device *adev) fence_put(adev->vm_manager.ids[i].first); amdgpu_sync_free(&adev->vm_manager.ids[i].active); fence_put(id->flushed_updates); + fence_put(id->last_flush); } } |