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

!11717 CVE-2024-43904

Merge Pull Request from: @ci-robot 
 
PR sync from: Yongqiang Liu <liuyongqiang13@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/KQWF3O2ZT7YWJONTXYXIAC2L6SPXRRK7/ 
Srinivasan Shanmugam (1):
  drm/amd/display: Add null checks for 'stream' and 'plane' before
    dereferencing


-- 
2.34.1
 
https://gitee.com/src-openeuler/kernel/issues/IAMMCZ 
 
Link:https://gitee.com/openeuler/kernel/pulls/11717

 

Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZhang Peng <zhangpeng362@huawei.com>
parents f428bab7 3624483d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -731,6 +731,9 @@ bool dcn30_apply_idle_power_optimizations(struct dc *dc, bool enable)
			stream = dc->current_state->streams[0];
			plane = (stream ? dc->current_state->stream_status[0].plane_states[0] : NULL);

			if (!stream || !plane)
				return false;

			if (stream && plane) {
				cursor_cache_enable = stream->cursor_position.enable &&
						plane->address.grph.cursor_cache_addr.quad_part;