linux/drivers/gpu/drm/amd/display
Zicheng Qu 6a057072dd drm/amd/display: Fix null check for pipe_ctx->plane_state in dcn20_program_pipe
This commit addresses a null pointer dereference issue in
dcn20_program_pipe(). Previously, commit 8e4ed3cf16 ("drm/amd/display:
Add null check for pipe_ctx->plane_state in dcn20_program_pipe")
partially fixed the null pointer dereference issue. However, in
dcn20_update_dchubp_dpp(), the variable pipe_ctx is passed in, and
plane_state is accessed again through pipe_ctx. Multiple if statements
directly call attributes of plane_state, leading to potential null
pointer dereference issues. This patch adds necessary null checks to
ensure stability.

Fixes: 8e4ed3cf16 ("drm/amd/display: Add null check for pipe_ctx->plane_state in dcn20_program_pipe")
Reviewed-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Zicheng Qu <quzicheng@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-11-20 10:03:05 -05:00
..
amdgpu_dm drm/amd/display: Adjust VSDB parser for replay feature 2024-11-11 11:54:11 -05:00
dc drm/amd/display: Fix null check for pipe_ctx->plane_state in dcn20_program_pipe 2024-11-20 10:03:05 -05:00
dmub drm/amd/display: 3.2.309 2024-11-11 11:54:53 -05:00
include drm/amd/display: Remove last parts of timing_trace 2024-11-04 11:26:36 -05:00
modules drm/amd/display: fix rxstatus_msg_sz type narrowing 2024-11-04 11:35:15 -05:00
Kconfig Linux 6.10-rc6 2024-07-05 10:47:28 +02:00
Makefile drm/amd/display: Refactor DCN3X into component folder 2024-06-14 16:18:55 -04:00