[PATCH 20/39] drm/amd/dal: fix memory leak pointed out by Juha Leppänen <juha_efku at dnainternet.net>

Harry Wentland harry.wentland at amd.com
Thu Nov 24 02:02:49 UTC 2016


From: Tony Cheng <tony.cheng at amd.com>

Change-Id: If6a337b16b78e1dd8a952d6c1064426961f6d5a7
Signed-off-by: Tony Cheng <tony.cheng at amd.com>
Acked-by: Harry Wentland <harry.wentland at amd.com>
---
 drivers/gpu/drm/amd/dal/dc/core/dc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc.c b/drivers/gpu/drm/amd/dal/dc/core/dc.c
index 6e32f1bd935c..aaf61a1feb47 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc.c
@@ -449,7 +449,7 @@ static void destruct(struct core_dc *dc)
 	resource_validate_ctx_destruct(dc->current_context);
 
 	dm_free(dc->temp_flip_context);
-	dc->current_context = NULL;
+	dc->temp_flip_context = NULL;
 
 	destroy_links(dc);
 
-- 
2.10.1



More information about the amd-gfx mailing list