]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Fix null check of pipe_ctx->plane_state for update_dchubp_dpp
authorMelissa Wen <mwen@igalia.com>
Wed, 30 Apr 2025 14:11:47 +0000 (11:11 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 May 2025 18:35:10 +0000 (14:35 -0400)
commita3b7e65b6be59e686e163fa1ceb0922f996897c2
tree5d2ab5488424d4e9a6b99d925927b6c3df6e7d3d
parent2ddac70fed50485aa4ae49cdb7478ce41d8d4715
drm/amd/display: Fix null check of pipe_ctx->plane_state for update_dchubp_dpp

Similar to commit 6a057072ddd1 ("drm/amd/display: Fix null check for
pipe_ctx->plane_state in dcn20_program_pipe") that addresses a null
pointer dereference on dcn20_update_dchubp_dpp. This is the same
function hooked for update_dchubp_dpp in dcn401, with the same issue.
Fix possible null pointer deference on dcn401_program_pipe too.

Fixes: 63ab80d9ac0a ("drm/amd/display: DML2.1 Post-Si Cleanup")
Signed-off-by: Melissa Wen <mwen@igalia.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit d8d47f739752227957d8efc0cb894761bfe1d879)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c