]> git.dujemihanovic.xyz Git - linux.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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Sep 2024 20:15:08 +0000 (16:15 -0400)
commitff599ef6970ee000fa5bc38d02fa5ff5f3fc7575
tree3b2e8c0cbaa86bacd0c173d6f7c787fe8f95427f
parentce83ae29f93772d604b4ea73459fb17822d6a6b0
drm/amd/display: Check null pointer before dereferencing se

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