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

!12448 drm/amd/display: Add null check for head_pipe in dcn201_acquire_free_pipe_for_layer

parents f08e9343 c77a1147
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1002,8 +1002,10 @@ static struct pipe_ctx *dcn201_acquire_free_pipe_for_layer(
	struct pipe_ctx *head_pipe = resource_get_otg_master_for_stream(res_ctx, opp_head_pipe->stream);
	struct pipe_ctx *idle_pipe = resource_find_free_secondary_pipe_legacy(res_ctx, pool, head_pipe);

	if (!head_pipe)
	if (!head_pipe) {
		ASSERT(0);
		return NULL;
	}

	if (!idle_pipe)
		return NULL;