]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Fix NULL pointer dereference
authorMeenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Mon, 29 Sep 2025 18:28:34 +0000 (14:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Oct 2025 13:45:33 +0000 (09:45 -0400)
commit89939cf252d80237ed380c1d20575ecfe56ff894
treebb6da07b78f17f6e569139ccc1afce58429916b0
parent211ddde0823f1442e4ad052a2f30f050145ccada
drm/amd/display: Fix NULL pointer dereference

[Why]
On a mst branch with multi display setup, dc context is obselete
after updating the first stream. Referencing the same dc context
for the next stream update to fetch dc pointer leads to NULL
pointer dereference.

[How]
Get the dc pointer from the link rather than context.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Signed-off-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit dc69b48988b171d6ccb3a083607e4dff015e2c0d)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c