]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Check NULL before accessing a variable
authorAlex Hung <alex.hung@amd.com>
Tue, 6 Jan 2026 16:42:26 +0000 (09:42 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Jan 2026 22:19:34 +0000 (17:19 -0500)
commit803a4cb8e3a4790c38be7e9bf64adfd2b6bdeeac
tree55cc101c9c1beba3d0ec76b1018a61bbb1f5f345
parent0a62732e53d7e295e1733a2d9bf661e593d86675
drm/amd/display: Check NULL before accessing a variable

[WHAT]
Check NULL before accessing link, not after.

This is reported as a REVERSE_INULL error by Coverity.

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Matthew Stewart <matthew.stewart2@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/power/power_helpers.c