diff options
author | Yongqiang Sun <yongqiang.sun@amd.com> | 2017-01-11 15:52:06 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 17:09:44 -0400 |
commit | 457b74cb3773a1950e49c2d4826d1b295c59bdf1 (patch) | |
tree | f7b0d634c5f4b9ecaacd9affcf9aee2b6421f9bc /drivers/gpu/drm/amd | |
parent | ab2541b67395088b9de8ebf3943ef9ef86bccc41 (diff) |
drm/amd/display: Null check clock source.
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 55d96656e54b..b0ac94d673c4 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( | |||
74 | if (pipes[i].stream != NULL && | 74 | if (pipes[i].stream != NULL && |
75 | pipes[i].stream->sink != NULL && | 75 | pipes[i].stream->sink != NULL && |
76 | pipes[i].stream->sink->link == link) { | 76 | pipes[i].stream->sink->link == link) { |
77 | if (pipes[i].clock_source->id != CLOCK_SOURCE_ID_DP_DTO) { | 77 | if (pipes[i].clock_source != NULL && |
78 | pipes[i].clock_source->id != CLOCK_SOURCE_ID_DP_DTO) { | ||
78 | pipes[i].clock_source = dp_cs; | 79 | pipes[i].clock_source = dp_cs; |
79 | pipes[i].pix_clk_params.requested_pix_clk = | 80 | pipes[i].pix_clk_params.requested_pix_clk = |
80 | pipes[i].stream->public.timing.pix_clk_khz; | 81 | pipes[i].stream->public.timing.pix_clk_khz; |