]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Clean up NULL pointer warnings in dml2
authorGaghik Khachatrian <gaghik.khachatrian@amd.com>
Mon, 23 Feb 2026 19:56:15 +0000 (14:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Mar 2026 14:53:13 +0000 (10:53 -0400)
commit6cafbc182855b8f456e04110b9111847446cd0ea
tree6323334e12c69d1628d10d820067df376e3f797d
parenteb2e7f20c1473f9153088d564471dc0226530824
drm/amd/display: Clean up NULL pointer warnings in dml2

This commit addresses multiple warnings by adding defensive
checks for NULL pointers before dereferencing them. The changes ensure
that pointers such as are validated, preventing potential undefined
behavior.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Gaghik Khachatrian <gaghik.khachatrian@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c