From 07f23a71f157e0f49a41487d3b624152b95a1e41 Mon Sep 17 00:00:00 2001 From: Yongqiang Sun Date: Wed, 11 Jan 2017 15:52:06 -0500 Subject: [PATCH 0141/4131] drm/amd/display: Null check clock source. Signed-off-by: Yongqiang Sun Acked-by: Harry Wentland Reviewed-by: Tony Cheng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c index 55d9665..b0ac94d 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c @@ -74,7 +74,8 @@ void dp_enable_link_phy( if (pipes[i].stream != NULL && pipes[i].stream->sink != NULL && pipes[i].stream->sink->link == link) { - if (pipes[i].clock_source->id != CLOCK_SOURCE_ID_DP_DTO) { + if (pipes[i].clock_source != NULL && + pipes[i].clock_source->id != CLOCK_SOURCE_ID_DP_DTO) { pipes[i].clock_source = dp_cs; pipes[i].pix_clk_params.requested_pix_clk = pipes[i].stream->public.timing.pix_clk_khz; -- 2.7.4