]> 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>
Mon, 20 Oct 2025 22:20:56 +0000 (18:20 -0400)
commitd7f5a61e1b04ed87b008c8d327649d184dc5bb45
tree80b5cb8e7385bdfbbb3d5a0da8d37cfe90c127d4
parent3471b9a31ce352ffb343cf02a991261880aac3a7
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>
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h