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

!12533 drm/amd/display: Add null check for head_pipe in...

!12533  drm/amd/display: Add null check for head_pipe in dcn32_acquire_idle_pipe_for_head_pipe_in_layer

Merge Pull Request from: @ci-robot 
 
PR sync from: Li Huafei <lihuafei1@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/K4AUGPHTCTQBAKYUMYCOJZKSDB6XOE47/ 
 
https://gitee.com/src-openeuler/kernel/issues/IAYRAX 
 
Link:https://gitee.com/openeuler/kernel/pulls/12533

 

Reviewed-by: default avatarYe Weihua <yeweihua4@huawei.com>
Signed-off-by: default avatarZhang Peng <zhangpeng362@huawei.com>
parents ebf321fb eed0b08a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2642,8 +2642,10 @@ static struct pipe_ctx *dcn32_acquire_idle_pipe_for_head_pipe_in_layer(
	struct resource_context *old_ctx = &stream->ctx->dc->current_state->res_ctx;
	int head_index;

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

	/*
	 * Modified from dcn20_acquire_idle_pipe_for_layer