Skip to content
Snippets Groups Projects
Commit 374c9faa authored by Ma Ke's avatar Ma Ke Committed by Alex Deucher
Browse files

drm/amd/display: Fix null check for pipe_ctx->plane_state in resource_build_scaling_params


Null pointer dereference issue could occur when pipe_ctx->plane_state
is null. The fix adds a check to ensure 'pipe_ctx->plane_state' is not
null before accessing. This prevents a null pointer dereference.

Found by code review.

Fixes: 3be5262e ("drm/amd/display: Rename more dc_surface stuff to plane_state")
Reviewed-by: default avatarAlex Hung <alex.hung@amd.com>
Signed-off-by: default avatarMa Ke <make24@iscas.ac.cn>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 63e6a77c)
Cc: stable@vger.kernel.org
parent 7eb17214
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment