diff options
author | Chunming Zhou <David1.Zhou@amd.com> | 2017-04-07 05:05:45 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-04-07 15:15:45 -0400 |
commit | 32df87dff04833bbf53f1750f6c6048192ed29bf (patch) | |
tree | 9e44d7690592fb0f449484d95ec979f6ea00a5ce | |
parent | ecdba5db88f661c8b548a6ba15db26463b465996 (diff) |
drm/amdgpu: fix fence memory leak in wait_all_fence V2
V2: remove **array method, directly fence_put after fence wait.
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <chrstian.koenig@amd.com>
Reviewed-by: Ken Wang <Qingqing.Wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 9cd4e1e05b97..ec71b9320561 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |||
@@ -1242,6 +1242,7 @@ static int amdgpu_cs_wait_all_fences(struct amdgpu_device *adev, | |||
1242 | continue; | 1242 | continue; |
1243 | 1243 | ||
1244 | r = dma_fence_wait_timeout(fence, true, timeout); | 1244 | r = dma_fence_wait_timeout(fence, true, timeout); |
1245 | dma_fence_put(fence); | ||
1245 | if (r < 0) | 1246 | if (r < 0) |
1246 | return r; | 1247 | return r; |
1247 | 1248 | ||