Unverified Commit ead8c270 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14011 drm/amd/display: Check phantom_stream before it is used

parents e4c7e358 7dbf7f81
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1791,6 +1791,9 @@ void dcn32_add_phantom_pipes(struct dc *dc, struct dc_state *context,
	// be a valid candidate for SubVP (i.e. has a plane, stream, doesn't
	// already have phantom pipe assigned, etc.) by previous checks.
	phantom_stream = dcn32_enable_phantom_stream(dc, context, pipes, pipe_cnt, index);
	if (!phantom_stream)
		return;

	dcn32_enable_phantom_plane(dc, context, phantom_stream, index);

	for (i = 0; i < dc->res_pool->pipe_count; i++) {