Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Melissa Wen and committed by
Alex Deucher
d8d47f73 533aa8bd

+3 -3
+3 -3
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
··· 2260 2260 dc->res_pool->hubbub, pipe_ctx->plane_res.hubp->inst, pipe_ctx->hubp_regs.det_size); 2261 2261 } 2262 2262 2263 - if (pipe_ctx->update_flags.raw || 2264 - (pipe_ctx->plane_state && pipe_ctx->plane_state->update_flags.raw) || 2265 - pipe_ctx->stream->update_flags.raw) 2263 + if (pipe_ctx->plane_state && (pipe_ctx->update_flags.raw || 2264 + pipe_ctx->plane_state->update_flags.raw || 2265 + pipe_ctx->stream->update_flags.raw)) 2266 2266 dc->hwss.update_dchubp_dpp(dc, pipe_ctx, context); 2267 2267 2268 2268 if (pipe_ctx->plane_state && (pipe_ctx->update_flags.bits.enable ||