]> Gentwo Git Trees - 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>
Mon, 20 Oct 2025 22:19:44 +0000 (18:19 -0400)
commitdc69b48988b171d6ccb3a083607e4dff015e2c0d
treec0c66a230c34e20de9960de01059d917f68d9037
parent279d519fdaf170eaca15037ed6a6e2faad91dbd4
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>
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c