aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0341-drm-amd-display-set-NULL-value-during-removal-for-re.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0341-drm-amd-display-set-NULL-value-during-removal-for-re.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0341-drm-amd-display-set-NULL-value-during-removal-for-re.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0341-drm-amd-display-set-NULL-value-during-removal-for-re.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0341-drm-amd-display-set-NULL-value-during-removal-for-re.patch
new file mode 100644
index 00000000..297816a0
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0341-drm-amd-display-set-NULL-value-during-removal-for-re.patch
@@ -0,0 +1,32 @@
+From 3cd43919c47d2bd6091aa284d2e46db94021af97 Mon Sep 17 00:00:00 2001
+From: Leon Elazar <leon.elazar@amd.com>
+Date: Mon, 10 Apr 2017 09:37:11 -0400
+Subject: [PATCH 0341/4131] drm/amd/display: set NULL value during removal for
+ remoteSink
+
+In MST case during removal of remote sink its descriptor pointer wasn't freed corectly.
+
+Signed-off-by: Leon Elazar <leon.elazar@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
+index 203cb9d..70dc02c 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
+@@ -1787,7 +1787,7 @@ void dc_link_remove_remote_sink(const struct dc_link *link, const struct dc_sink
+ dc_link->remote_sinks[i] = dc_link->remote_sinks[i+1];
+ i++;
+ }
+-
++ dc_link->remote_sinks[i] = NULL;
+ dc_link->sink_count--;
+ return;
+ }
+--
+2.7.4
+