diff options
author | Christian König <christian.koenig@amd.com> | 2015-07-16 06:01:06 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-17 16:50:15 -0400 |
commit | cdecb65b4eaba1d45abbfe34b724664f65623531 (patch) | |
tree | f00dece81e1b7c8176b95b5c0bf483fd1ac25249 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |
parent | 0753b45242059f523a6238ec2741a4436db2fbd0 (diff) |
drm/amdgpu: fix context memory leak
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
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) | |||
130 | DRM_ERROR("ctx %p is still alive\n", ctx); | 130 | DRM_ERROR("ctx %p is still alive\n", ctx); |
131 | } | 131 | } |
132 | 132 | ||
133 | idr_destroy(&mgr->ctx_handles); | ||
133 | mutex_destroy(&mgr->lock); | 134 | mutex_destroy(&mgr->lock); |
134 | } | 135 | } |
135 | 136 | ||