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

!12952 drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream

parents 9cb5e056 313a5ddf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3797,7 +3797,8 @@ static void commit_planes_for_stream(struct dc *dc,
	}

	if ((update_type != UPDATE_TYPE_FAST) && stream->update_flags.bits.dsc_changed)
		if (top_pipe_to_program->stream_res.tg->funcs->lock_doublebuffer_enable) {
		if (top_pipe_to_program &&
		    top_pipe_to_program->stream_res.tg->funcs->lock_doublebuffer_enable) {
			top_pipe_to_program->stream_res.tg->funcs->wait_for_state(
				top_pipe_to_program->stream_res.tg,
				CRTC_STATE_VACTIVE);