From: Christian König Date: Thu, 16 Jul 2015 10:01:06 +0000 (+0200) Subject: drm/amdgpu: fix context memory leak X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=cdecb65b4eaba1d45abbfe34b724664f65623531;p=deliverable%2Flinux.git drm/amdgpu: fix context memory leak Signed-off-by: Christian König Reviewed-by: Jammy Zhou --- 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); }