drm/amdgpu: fix context memory leak
authorChristian König <christian.koenig@amd.com>
Thu, 16 Jul 2015 10:01:06 +0000 (12:01 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:50:15 +0000 (16:50 -0400)
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c

index c23bfd8fe4143ce4a11376977a70630c1bcdb972..859a4841075e74e26ffd36cdafb5117fb3b17af1 100644 (file)
@@ -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);
 }