diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0141-drm-amd-display-Null-check-clock-source.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/0141-drm-amd-display-Null-check-clock-source.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0141-drm-amd-display-Null-check-clock-source.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0141-drm-amd-display-Null-check-clock-source.patch new file mode 100644 index 00000000..6193f073 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0141-drm-amd-display-Null-check-clock-source.patch @@ -0,0 +1,30 @@ +From 07f23a71f157e0f49a41487d3b624152b95a1e41 Mon Sep 17 00:00:00 2001 +From: Yongqiang Sun <yongqiang.sun@amd.com> +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 <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> +--- + 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 + |