]> www.infradead.org Git - users/jedix/linux-maple.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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:45:33 +0000 (09:45 -0400)
commit899d92fd26fe780aad711322aa671f68058207a6
treece2d3385b11ad8e17ba105710d0c80967354c597
parentcbc7d7d4469faa490ff535fbcc6fa9f5a97788fe
drm/amd/display: Add null check in resource_log_pipe_topology_update

[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>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c