linux/drivers/gpu/drm/amd/display/dc
Ma Ke 374c9faac5 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: 3be5262e35 ("drm/amd/display: Rename more dc_surface stuff to plane_state")
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 63e6a77ccf)
Cc: stable@vger.kernel.org
2025-03-05 11:44:53 -05:00
..
basics drm/amd/display: fix typo in the comment 2024-09-18 16:14:27 -04:00
bios drm/amd/display: Update chip_cap defines and usage 2025-01-10 12:00:23 -05:00
clk_mgr drm/amd/display: Correct register address in dcn35 2025-01-28 16:23:30 -05:00
core drm/amd/display: Fix null check for pipe_ctx->plane_state in resource_build_scaling_params 2025-03-05 11:44:53 -05:00
dccg drm/amd/display: Remove PIPE_DTO_SRC_SEL programming from set_dtbclk_dto 2024-11-20 09:41:22 -05:00
dce Revert "drm/amd/display: Use HW lock mgr for PSR1" 2025-02-04 17:47:34 -05:00
dce60 drm/amd/display: Add hpd_source index check for DCE60/80/100/110/112/120 link encoders 2024-10-22 17:50:37 -04:00
dce80
dce110 drm/amd/display: Add support to configure CRC window on specific CRC instance 2025-01-10 12:03:45 -05:00
dce112
dce120 drm/amd/display: Add support to configure CRC window on specific CRC instance 2025-01-10 12:03:45 -05:00
dcn10 drm/amd/display: Change parameters to fix certain compiler errors 2024-11-08 11:45:29 -05:00
dcn20
dcn21
dcn30 drm/amd/display: Remove unused cm3_helper_translate_curve_to_degamma_hw_format 2024-11-04 11:26:20 -05:00
dcn31 drm/amd/display: Refactor dcn31_panel_construct to avoid assert 2024-12-10 10:31:24 -05:00
dcn201
dcn301
dio drm/amd/display: improve dpia pre-train 2025-01-10 12:12:29 -05:00
dml drm/amd/display: Respect user's CONFIG_FRAME_WARN more for dml files 2025-02-04 17:47:10 -05:00
dml2 drm/amd/display: Respect user's CONFIG_FRAME_WARN more for dml files 2025-02-04 17:47:10 -05:00
dpp drm/amd/display: Optimize cursor position updates 2025-01-24 09:56:28 -05:00
dsc drm/amd/display: Add Interface to Dump DSC Caps from dm 2025-01-06 14:44:27 -05:00
dwb drm/amd/display: Remove unused dwb3_set_host_read_rate_control 2024-12-10 10:38:19 -05:00
gpio drm/amd/display: Remove useless assignments 2024-10-15 11:22:48 -04:00
hdcp
hpo
hubbub drm/amd/display: Fix seamless boot sequence 2025-02-03 12:13:38 -05:00
hubp drm/amd/display: Fix seamless boot sequence 2025-02-03 12:13:38 -05:00
hwss drm/amd/display: Fix seamless boot sequence 2025-02-03 12:13:38 -05:00
inc drm/amd/display: Add hubp cache reset when powergating 2025-01-24 09:56:22 -05:00
irq drm/amdgpu: rename register headers to dcn_2_0_1 2024-12-10 10:37:34 -05:00
link drm/amd/display: improve dpia pre-train 2025-01-10 12:12:29 -05:00
mmhubbub
mpc drm/amd/display: Disable MPC rate control on ODM pipe update 2024-12-18 12:21:50 -05:00
opp
optc drm/amd/display: Add support to configure CRC window on specific CRC instance 2025-01-10 12:03:45 -05:00
pg
resource drm/amd/display: Add SMU interface to get UMC count for dcn401 2025-01-10 12:04:43 -05:00
spl drm/amd/display: Clean up SPL code 2025-01-06 14:44:28 -05:00
virtual
Makefile
dc.h drm/amd/display: 3.2.316 2025-01-10 12:12:47 -05:00
dc_bios_types.h
dc_ddc_types.h
dc_dmub_srv.c drm/amd/display: Add support for FAMS2+ interface versions 2024-12-18 12:18:33 -05:00
dc_dmub_srv.h Revert "drm/amd/display: Don't allow IPS2 in D0 for RCG Dynamic" 2024-12-10 10:35:56 -05:00
dc_dp_types.h drm/amd/display: Parse RECEIVE_PORT0_CAP capabilities from DPCD 2025-01-06 14:44:26 -05:00
dc_dsc.h drm/amd/display: Add Interface to Dump DSC Caps from dm 2025-01-06 14:44:27 -05:00
dc_edid_parser.c
dc_edid_parser.h
dc_hdmi_types.h
dc_helper.c
dc_hw_types.h drm/amd/display: Update dc_tiling_info union to structure 2025-01-06 14:44:27 -05:00
dc_plane.h drm/amd/display/dc: add helper for panic updates 2024-12-18 12:14:09 -05:00
dc_plane_priv.h
dc_spl_translate.c drm/amd/display: clean up SPL code 2024-12-10 10:31:58 -05:00
dc_spl_translate.h drm/amd/display: add back quality EASF and ISHARP and dc dependency changes 2024-08-27 17:53:58 -04:00
dc_stat.h
dc_state.h drm/amd/display: Eliminate recursive header inclusion 2024-10-01 17:37:50 -04:00
dc_state_priv.h
dc_stream.h drm/amd/display: Add support to configure CRC window on specific CRC instance 2025-01-10 12:03:45 -05:00
dc_stream_priv.h
dc_trace.h
dc_types.h drm/amd/display: Revised for Replay Pseudo vblank control 2025-01-10 12:11:38 -05:00
dm_cp_psp.h
dm_event_log.h
dm_helpers.h drm/amd/display: Add HBlank reduction DPCD write to DPMS sequence 2025-01-06 14:44:27 -05:00
dm_pp_smu.h
dm_services.h drm/amd/display: Change parameters to fix certain compiler errors 2024-11-08 11:45:29 -05:00
dm_services_types.h
irq_types.h
os_types.h