2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/amd/display/dc
Ma Ke 63e6a77ccf 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>
2025-02-27 16:50:04 -05:00
..
basics drm/amd/display: Fix BT2020 YCbCr limited/full range input 2025-02-19 15:14:10 -05:00
bios drm/amd/display/dc: Refactor remove duplications 2025-02-27 15:52:32 -05:00
clk_mgr drm/amd/display: Guard against setting dispclk low when active 2025-02-19 15:14:19 -05:00
core drm/amd/display: Fix null check for pipe_ctx->plane_state in resource_build_scaling_params 2025-02-27 16:50:04 -05:00
dccg drm/amd/display: Refactor DCN4x and related code 2025-02-25 11:44:02 -05:00
dce drm/amd/display: Fix BT2020 YCbCr limited/full range input 2025-02-19 15:14:10 -05:00
dce60 drm/amd/display: Add clear DCC and Tiling callback for DCE 2025-02-19 15:18:22 -05:00
dce80 drm/amd/display: Add P-State Keepout to dcn401 Global Sync 2024-07-23 17:07:12 -04:00
dce110 drm/amd/display: Remove unused get_max_support_fbc_buffersize 2025-02-12 21:03:03 -05:00
dce112 kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
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: log destination of vertical interrupt 2025-02-12 21:02:57 -05:00
dcn20 drm/amd/display: Refactoring MPC 2024-07-23 17:07:11 -04:00
dcn21 drm/amd/display: Refactor HUBP into component folder. 2024-05-08 15:17:03 -04:00
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 drm/amd/display: Add left edge pixel for YCbCr422/420 + ODM pipe split 2024-05-13 15:46:55 -04:00
dcn301 drm/amd/display: Refactor for dio 2024-07-27 17:31:26 -04:00
dio drm/amd/display: Refactor DCN4x and related code 2025-02-25 11:44:02 -05:00
dml drm/amd/display: Remove unused optc3_fpu_set_vrr_m_const 2025-02-27 15:52:40 -05:00
dml2 drm/amd/display: stop DML2 from removing pipes based on planes 2025-02-25 11:45:11 -05:00
dpp drm/amd/display: handle max_downscale_src_width fail check 2025-02-25 11:45:11 -05:00
dsc drm/amd/display: Allow reuse of of DCN4x code 2025-02-12 21:03:01 -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: Add DCN36 GPIO 2025-02-12 21:04:07 -05:00
hdcp drm/amd/display: Check msg_id before processing transcation 2024-05-02 16:18:17 -04:00
hpo drm/amd/display: Refactor DCN4x and related code 2025-02-25 11:44:02 -05:00
hubbub drm/amd/display: Remove unused hubbub1_toggle_watermark_change_req 2025-02-12 21:03:03 -05:00
hubp drm/amd/display: Allow reuse of of DCN4x code 2025-02-12 21:03:01 -05:00
hwss drm/amd/display: Refactor DCN4x and related code 2025-02-25 11:44:02 -05:00
inc drm/amd/display: replace dio encoder access 2025-02-25 11:44:02 -05:00
irq drm/amd/display: Add DCN36 IRQ 2025-02-12 21:04:07 -05:00
link drm/amd/display: Update FIXED_VS Link Rate Toggle Workaround Usage 2025-02-25 11:45:11 -05:00
mmhubbub drm/amd/display: Allow reuse of of DCN4x code 2025-02-12 21:03:01 -05:00
mpc drm/amd/display: Refactor DCN4x and related code 2025-02-25 11:44:02 -05:00
opp drm/amd/display: Refactoring OPP 2024-07-23 17:07:10 -04:00
optc drm/amd/display: Refactor DCN4x and related code 2025-02-25 11:44:02 -05:00
pg drm/amd/display: Refactor DCN3X into component folder 2024-06-14 16:18:55 -04:00
resource drm/amd/display: Temporarily disable hostvm on DCN31 2025-02-25 11:45:11 -05:00
sspl drm/amd/display: Remove unused header 2025-02-25 11:45:11 -05:00
virtual
dc_bios_types.h drm/amd/display: Add misc DC changes for DCN401 2024-04-26 17:23:34 -04:00
dc_ddc_types.h
dc_dmub_srv.c drm/amd/display: Reverse the visual confirm recouts 2025-02-12 21:02:57 -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: Update FIXED_VS Link Rate Toggle Workaround Usage 2025-02-25 11:45:11 -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 drm/amd/display: Add DCN36 version identifiers 2025-02-12 21:04:07 -05:00
dc_hw_types.h drm/amd/display: Fix BT2020 YCbCr limited/full range input 2025-02-19 15:14:10 -05:00
dc_plane_priv.h drm/amd/display: Add driver support for future FAMS versions 2024-04-09 22:15:26 -04:00
dc_plane.h drm/amd/display: Rename panic function 2025-02-19 15:12:49 -05:00
dc_spl_translate.c drm/amd/display: Move SPL to a new path 2025-02-12 21:03:01 -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_priv.h drm/amd/display: Add misc DC changes for DCN401 2024-04-26 17:23:34 -04:00
dc_state.h drm/amd/display: Eliminate recursive header inclusion 2024-10-01 17:37:50 -04:00
dc_stream_priv.h drm/amd/display: Find max flickerless instant vtotal delta 2024-05-13 15:47:53 -04:00
dc_stream.h drm/amd/display: Remove unused dc_stream_get_crtc_position 2025-02-12 21:03:02 -05:00
dc_trace.h
dc_types.h drm/amd/display: Support multiple options during psr entry. 2025-02-12 21:03:00 -05:00
dc.h drm/amd/display: Promote DAL to 3.2.322 2025-02-25 11:45:12 -05:00
dm_cp_psp.h drm/amd/display: Trivial code style adjustment 2024-02-07 12:26:23 -05:00
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 drm/amd/display: Add missing SMU version 2024-04-30 09:52:08 -04:00
dm_services_types.h drm/amd/display: ACPI Re-timer Programming 2025-02-25 11:44:36 -05:00
dm_services.h drm/amd/display: ACPI Re-timer Programming 2025-02-25 11:44:36 -05:00
irq_types.h drm/amd/display: add new IRQ enum for underflows 2025-02-12 21:04:09 -05:00
Makefile drm/amd/display: Move SPL to a new path 2025-02-12 21:03:01 -05:00
os_types.h drm/amd/display: Remove legacy code in DC 2024-04-30 09:52:51 -04:00