]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: increase max link count and fix link->enc NULL pointer access
authorCharlene Liu <Charlene.Liu@amd.com>
Tue, 30 Sep 2025 00:29:30 +0000 (20:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Oct 2025 13:50:27 +0000 (09:50 -0400)
commitbec947cbe9a65783adb475a5fb47980d7b4f4796
tree38296c90c007f449704c58d7648ea13e6d13349e
parent89939cf252d80237ed380c1d20575ecfe56ff894
drm/amd/display: increase max link count and fix link->enc NULL pointer access

[why]
1.) dc->links[MAX_LINKS] array size smaller than actual requested.
max_connector + max_dpia + 4 virtual = 14.
increase from 12 to 14.

2.) hw_init() access null LINK_ENC for dpia non display_endpoint.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Reviewed-by: Chris Park <chris.park@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit d7f5a61e1b04ed87b008c8d327649d184dc5bb45)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h