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

!13948 fix CVE-2024-49906

Merge Pull Request from: @ci-robot 
 
PR sync from: Cheng Yu <serein.chengyu@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/A3X6AEK5O7LCSEYRG6VBUC4XQBK2N2H2/ 
fix CVE-2024-49906

Rodrigo Siqueira (1):
  drm/amd/display: Check null pointer before try to access it

Wayne Lin (1):
  drm/amd/display: Check null pointer before try to access it


-- 
2.25.1
 
https://gitee.com/src-openeuler/kernel/issues/IAYRAN 
 
Link:https://gitee.com/openeuler/kernel/pulls/13948

 

Reviewed-by: default avatarZucheng Zheng <zhengzucheng@huawei.com>
Reviewed-by: default avatarLi Nan <linan122@huawei.com>
Signed-off-by: default avatarLi Nan <linan122@huawei.com>
parents b61a367a 07cd9486
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -1606,15 +1606,14 @@ static void dcn20_program_pipe(
		pipe_ctx->stream->update_flags.raw)
		dcn20_update_dchubp_dpp(dc, pipe_ctx, context);

	if (pipe_ctx->update_flags.bits.enable ||
	    (pipe_ctx->plane_state && pipe_ctx->plane_state->update_flags.bits.hdr_mult))
	if (pipe_ctx->plane_state && (pipe_ctx->update_flags.bits.enable ||
		pipe_ctx->plane_state->update_flags.bits.hdr_mult))
		hws->funcs.set_hdr_multiplier(pipe_ctx);

	if (pipe_ctx->update_flags.bits.enable ||
			(pipe_ctx->plane_state &&
			pipe_ctx->plane_state->update_flags.bits.in_transfer_func_change) ||
			(pipe_ctx->plane_state &&
			pipe_ctx->plane_state->update_flags.bits.gamma_change))
	if (pipe_ctx->plane_state &&
		 (pipe_ctx->plane_state->update_flags.bits.in_transfer_func_change ||
		 pipe_ctx->plane_state->update_flags.bits.gamma_change ||
		 pipe_ctx->update_flags.bits.enable))
		hws->funcs.set_input_transfer_func(dc, pipe_ctx, pipe_ctx->plane_state);

	/* dcn10_translate_regamma_to_hw_format takes 750us to finish