diff options
author | Zicheng Qu <quzicheng@huawei.com> | 2024-11-05 14:01:36 +0000 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-11-20 10:03:05 -0500 |
commit | 6a057072ddd127255350357dd880903e8fa23f36 (patch) | |
tree | 3ec2cff4dee2f0dda197763008342a232d055c3b /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 7037bb04265ef05c6ffad56d884b0df76f57b095 (diff) | |
download | linux-6a057072ddd127255350357dd880903e8fa23f36.tar.gz linux-6a057072ddd127255350357dd880903e8fa23f36.tar.bz2 linux-6a057072ddd127255350357dd880903e8fa23f36.zip |
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 8e4ed3cf1642 ("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: 8e4ed3cf1642 ("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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions