aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2015-07-16 10:01:06 +0000
committerAlex Deucher <[email protected]>2015-08-17 20:50:15 +0000
commitcdecb65b4eaba1d45abbfe34b724664f65623531 (patch)
treef00dece81e1b7c8176b95b5c0bf483fd1ac25249 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
parentdrm/amdgpu: remove amdgpu_fence_recreate (diff)
downloadkernel-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.c1
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);
}