aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0094-drm-amd-display-don-t-crash-if-stream-is-NULL-when-t.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0094-drm-amd-display-don-t-crash-if-stream-is-NULL-when-t.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0094-drm-amd-display-don-t-crash-if-stream-is-NULL-when-t.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0094-drm-amd-display-don-t-crash-if-stream-is-NULL-when-t.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0094-drm-amd-display-don-t-crash-if-stream-is-NULL-when-t.patch
new file mode 100644
index 00000000..24f4a6b8
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0094-drm-amd-display-don-t-crash-if-stream-is-NULL-when-t.patch
@@ -0,0 +1,33 @@
+From cd1ce36cab0fd3493287c4056bccead5335c9a0e Mon Sep 17 00:00:00 2001
+From: Yongqiang Sun <yongqiang.sun@amd.com>
+Date: Wed, 21 Dec 2016 11:16:48 -0500
+Subject: [PATCH 0094/4131] drm/amd/display: don't crash if stream is NULL when
+ trying to share clocks
+
+Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+index 343114b..eac597d 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+@@ -288,6 +288,11 @@ static bool is_sharable_clk_src(
+ if (pipe_with_clk_src->clock_source == NULL)
+ return false;
+
++ if (pipe_with_clk_src->stream == NULL) {
++ ASSERT(0);
++ return false;
++ }
++
+ if (pipe_with_clk_src->stream->signal == SIGNAL_TYPE_VIRTUAL)
+ return false;
+
+--
+2.7.4
+