提交 0f4e66cd 编写于 作者: Y Yongqiang Sun 提交者: Alex Deucher

drm/amd/display: don't crash if stream is NULL when trying to share clocks

Signed-off-by: NYongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 d7194cf6
......@@ -288,6 +288,11 @@ static bool is_sharable_clk_src(
if (pipe_with_clk_src->clock_source == NULL)
return false;
if (pipe_with_clk_src->stream == NULL) {
ASSERT(0);
return false;
}
if (pipe_with_clk_src->stream->signal == SIGNAL_TYPE_VIRTUAL)
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册