diff options
author | Reza Amini <reza.amini@amd.com> | 2017-02-03 14:19:41 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 17:14:12 -0400 |
commit | 67c3bd40b3b97cac40e01aaef712ccf4af5a48b1 (patch) | |
tree | f1a90befa89dd5420242403e8bd6fed6a06d7229 /drivers/gpu/drm/amd/display | |
parent | ab8812a3861efd3d60a4079711f2d1b08b8af50e (diff) | |
download | linux-stable-67c3bd40b3b97cac40e01aaef712ccf4af5a48b1.tar.gz linux-stable-67c3bd40b3b97cac40e01aaef712ccf4af5a48b1.tar.bz2 linux-stable-67c3bd40b3b97cac40e01aaef712ccf4af5a48b1.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_sink.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |