]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Check null pointer before dereferencing se
authorAlex Hung <alex.hung@amd.com>
Thu, 29 Aug 2024 23:30:26 +0000 (17:30 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:53 +0000 (15:11 +0200)
commitc643ef59390e49f1dfab35e8ea65f5db5e527d64
tree846cc20f7b3bb2c13d4cf3cba3549c6805d83446
parent57551835ce4176838504ce2c951670464d8f3a5b
drm/amd/display: Check null pointer before dereferencing se

[ Upstream commit ff599ef6970ee000fa5bc38d02fa5ff5f3fc7575 ]

[WHAT & HOW]
se is null checked previously in the same function, indicating
it might be null; therefore, it must be checked when used again.

This fixes 1 FORWARD_NULL issue reported by Coverity.

Acked-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/core/dc.c