aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0092-drm-amd-display-Reset-gamma-to-NULL-after-release.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0092-drm-amd-display-Reset-gamma-to-NULL-after-release.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0092-drm-amd-display-Reset-gamma-to-NULL-after-release.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0092-drm-amd-display-Reset-gamma-to-NULL-after-release.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0092-drm-amd-display-Reset-gamma-to-NULL-after-release.patch
new file mode 100644
index 00000000..22fa43ff
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0092-drm-amd-display-Reset-gamma-to-NULL-after-release.patch
@@ -0,0 +1,32 @@
+From 4b1bb306d351c53e93bdf4c2db9bc5fd0f7cbd57 Mon Sep 17 00:00:00 2001
+From: Anthony Koo <Anthony.Koo@amd.com>
+Date: Tue, 20 Dec 2016 18:48:11 -0500
+Subject: [PATCH 0092/4131] drm/amd/display: Reset gamma to NULL after release
+
+Signed-off-by: Anthony Koo <anthony.koo@amd.com>
+Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/modules/color/color.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/modules/color/color.c b/drivers/gpu/drm/amd/display/modules/color/color.c
+index 9388672..6d1b20f 100644
+--- a/drivers/gpu/drm/amd/display/modules/color/color.c
++++ b/drivers/gpu/drm/amd/display/modules/color/color.c
+@@ -1748,8 +1748,10 @@ bool mod_color_remove_sink(struct mod_color *mod_color,
+
+ for (i = 0; i < core_color->num_sinks; i++) {
+ if (core_color->caps[i].sink == sink) {
+- if (core_color->state[i].gamma)
++ if (core_color->state[i].gamma) {
+ dc_gamma_release(core_color->state[i].gamma);
++ core_color->state[i].gamma = NULL;
++ }
+
+ /* To remove this sink, shift everything after down */
+ for (j = i; j < core_color->num_sinks - 1; j++) {
+--
+2.7.4
+