aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0207-drm-amd-display-handle-unsupported-sink-types.patch
diff options
context:
space:
mode:
authorWade Farnsworth <wfarnsworth@users.noreply.github.com>2019-10-22 08:08:07 -0700
committerGitHub <noreply@github.com>2019-10-22 08:08:07 -0700
commit8e0cf9ee43840bd7ee004412129ba4aa055f5fc8 (patch)
treeb13804093e413307097cd6788ccdc8b062084013 /meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0207-drm-amd-display-handle-unsupported-sink-types.patch
parent9e1e1da00d8ef569d83a7a742a734dbbf5e0bd13 (diff)
parent3f8062a03dc1d1d5fa386e1f1ca59d56b86a85d1 (diff)
downloadmeta-amd-master.tar.gz
meta-amd-master.tar.bz2
meta-amd-master.zip
Merge pull request #661 from ArsalanHAwan/master-merge-warriorHEADmaster
master: merge warrior
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0207-drm-amd-display-handle-unsupported-sink-types.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0207-drm-amd-display-handle-unsupported-sink-types.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0207-drm-amd-display-handle-unsupported-sink-types.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0207-drm-amd-display-handle-unsupported-sink-types.patch
new file mode 100644
index 00000000..77910731
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0207-drm-amd-display-handle-unsupported-sink-types.patch
@@ -0,0 +1,31 @@
+From d6d5d99c95d7f1e621f4de079c1064664030cdc0 Mon Sep 17 00:00:00 2001
+From: Reza Amini <reza.amini@amd.com>
+Date: Fri, 3 Feb 2017 14:19:41 -0500
+Subject: [PATCH 0207/4131] drm/amd/display: handle unsupported sink types
+
+Signed-off-by: Reza Amini <reza.amini@amd.com>
+Reviewed-by: Wesley Chalmers <Wesley.Chalmers@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_sink.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_sink.c b/drivers/gpu/drm/amd/display/dc/core/dc_sink.c
+index 9dff0bf..0a805ea 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_sink.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_sink.c
+@@ -53,6 +53,10 @@ static bool construct(struct sink *sink, const struct dc_sink_init_data *init_pa
+
+ struct core_link *core_link = DC_LINK_TO_LINK(init_params->link);
+
++ if (!core_link) {
++ return false;
++ }
++
+ sink->protected.public.sink_signal = init_params->sink_signal;
+ sink->protected.link = core_link;
+ sink->protected.ctx = core_link->ctx;
+--
+2.7.4
+