From: Reza Amini <reza.am...@amd.com> Change-Id: I75e3abe9e122350cb06c2cd24528ceb974b70b59 Signed-off-by: Reza Amini <reza.am...@amd.com> Reviewed-by: Wesley Chalmers <wesley.chalm...@amd.com> Acked-by: Harry Wentland <harry.wentl...@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 _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx