aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/1221-drm-amd-dal-Fix-bug-when-cleaning-up-dc-ctx.patch
blob: e3ed301b8412ef8d0e0902c2959bc8a025b928f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 66c5059dee2c50eb34797de661c3fc87f5d4ea7e Mon Sep 17 00:00:00 2001
From: Chris Park <Chris.Park@amd.com>
Date: Mon, 4 Jan 2016 16:42:22 -0500
Subject: [PATCH 1221/1565] drm/amd/dal: Fix bug when cleaning up dc->ctx

Since free dc clears the memory block for dc including dc->ctx, no need to clear dc->ctx again.

Change-Id: I038406a7dd8497e01d267542f4482e79b6bafc60
Signed-off-by: Chris Park <Chris.Park@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/core/dc.c | 1 -
 1 file changed, 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 df243c2..ea31bc6 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc.c
@@ -402,7 +402,6 @@ void dc_destroy(struct dc **dc)
 {
 	destruct(*dc);
 	dc_service_free((*dc)->ctx, *dc);
-	dc_service_free((*dc)->ctx, (*dc)->ctx);
 	*dc = NULL;
 }
 
-- 
1.9.1