diff options
| author | Christian König <[email protected]> | 2015-07-16 10:01:06 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2015-08-17 20:50:15 +0000 |
| commit | cdecb65b4eaba1d45abbfe34b724664f65623531 (patch) | |
| tree | f00dece81e1b7c8176b95b5c0bf483fd1ac25249 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |
| parent | drm/amdgpu: remove amdgpu_fence_recreate (diff) | |
| download | kernel-cdecb65b4eaba1d45abbfe34b724664f65623531.tar.gz kernel-cdecb65b4eaba1d45abbfe34b724664f65623531.zip | |
drm/amdgpu: fix context memory leak
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Jammy Zhou <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c index c23bfd8fe414..859a4841075e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c @@ -130,6 +130,7 @@ void amdgpu_ctx_fini(struct amdgpu_fpriv *fpriv) DRM_ERROR("ctx %p is still alive\n", ctx); } + idr_destroy(&mgr->ctx_handles); mutex_destroy(&mgr->lock); } |
