drm/amd/display: Check null pointers before using them
authorAlex Hung <alex.hung@amd.com>
Mon, 15 Jul 2024 16:24:58 +0000 (10:24 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 27 Jul 2024 21:31:52 +0000 (17:31 -0400)
commit722e96c99f1d7532fdfbb557f50a399f6cc57d82
treeb0b00dd954cc90e001fc4456ee4293256fdc368a
parent3f96f545f877ac59d0c967f52d760b4b2b3b9a47
drm/amd/display: Check null pointers before using them

[WHAT & HOW]
dc_link is null checked previously in the same function, indicating it
might be null as reported by Coverity.

This fixes 1 FORWARD_NULL issue reported by Coverity.

Signed-off-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c