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

Submitted by Harry Wentland on Nov. 24, 2016, 2:02 a.m.

Details

Message ID 20161124020308.28124-21-harry.wentland@amd.com
State New
Headers show
Series "dal patches for nov 23, 2016" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Harry Wentland Nov. 24, 2016, 2:02 a.m.
From: Tony Cheng <tony.cheng@amd.com>

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

Patch hide | download patch | download mbox

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);