[PATCH 05/10] drm/amd/display: handle unsupported sink types
Harry Wentland
harry.wentland at amd.com
Mon Feb 13 16:02:24 UTC 2017
From: Reza Amini <reza.amini at amd.com>
Change-Id: I75e3abe9e122350cb06c2cd24528ceb974b70b59
Signed-off-by: Reza Amini <reza.amini at amd.com>
Reviewed-by: Wesley Chalmers <Wesley.Chalmers at amd.com>
Acked-by: Harry Wentland <Harry.Wentland at 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 9dff0bfd5b23..0a805ea1159a 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.9.3
More information about the amd-gfx
mailing list