]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: Add NULL-checks in dml2 assigned pipe search
authorAllen Pan <allen.pan@amd.com>
Tue, 9 Jan 2024 19:54:02 +0000 (14:54 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Jan 2024 22:13:27 +0000 (17:13 -0500)
commitb8f2234846d7ebd1347013425ffdead4d123147f
treeec508c140e50ec3cafdb77e8e5fe13ca6f861d46
parent855f42ba925453af803e2b7ebd156f0ff0e9efe0
drm/amd/display: Add NULL-checks in dml2 assigned pipe search

[Why]
NULL-deref regression after:
"drm/amd/display: Fix dml2 assigned pipe search"

[How]
Add verification for potential NULLs

Fixes: d451b534e0b4 ("drm/amd/display: Fix dml2 assigned pipe search")
Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Roman Li <roman.li@amd.com>
Signed-off-by: Gabe Teeger <gabe.teeger@amd.com>
Signed-off-by: Allen Pan <allen.pan@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/dml2/dml2_dc_resource_mgmt.c