drm/amd/display: fix a dereference of a NULL pointer
authorWenjing Liu <wenjing.liu@amd.com>
Tue, 12 Mar 2024 19:31:59 +0000 (15:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Mar 2024 13:26:17 +0000 (09:26 -0400)
commitfe869c2e53484a29ab241667606240b91db920ef
treef8a228a9c231560ca86e1d60f9b2b7cee7162110
parent25358e04a43c33e6cd8dce528da1d624de915864
drm/amd/display: fix a dereference of a NULL pointer

[why&how]
In some platform out_transfer_func may not be popualted. We need to check
for null before dereferencing it.

Fixes: d2dea1f14038 ("drm/amd/display: Generalize new minimal transition path")
Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@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