]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Add null check in resource_log_pipe_topology_update
authorNatanel Roizenman <natanel.roizenman@amd.com>
Wed, 3 Apr 2024 20:52:48 +0000 (16:52 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 13:34:37 +0000 (15:34 +0200)
commitc36e922a36bdf69765c340a0857ca74092003bee
treed6229a3ea3e451d73154d8f55a9a32a6c45616b1
parent7f71acdb075ef37787e5b2a4ac690ed09c14ed9c
drm/amd/display: Add null check in resource_log_pipe_topology_update

commit 899d92fd26fe780aad711322aa671f68058207a6 upstream.

[WHY]
When switching from "Extend" to "Second Display Only" we sometimes
call resource_get_otg_master_for_stream on a stream for the eDP,
which is disconnected. This leads to a null pointer dereference.

[HOW]
Added a null check in dc_resource.c/resource_log_pipe_topology_update.

CC: stable@vger.kernel.org
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Natanel Roizenman <natanel.roizenman@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c