aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/1032-drm-amd-dal-Fix-bug-when-cleaning-up-dc-ctx.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amdfalconx86/recipes-kernel/linux/linux-yocto/1032-drm-amd-dal-Fix-bug-when-cleaning-up-dc-ctx.patch')
-rw-r--r--meta-amdfalconx86/recipes-kernel/linux/linux-yocto/1032-drm-amd-dal-Fix-bug-when-cleaning-up-dc-ctx.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/1032-drm-amd-dal-Fix-bug-when-cleaning-up-dc-ctx.patch b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/1032-drm-amd-dal-Fix-bug-when-cleaning-up-dc-ctx.patch
new file mode 100644
index 00000000..0746b2b0
--- /dev/null
+++ b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/1032-drm-amd-dal-Fix-bug-when-cleaning-up-dc-ctx.patch
@@ -0,0 +1,30 @@
+From b8ea6508b4b7d95e742ccb0a5ff4f0221f1d0945 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 1032/1050] 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
+