drm/amdgpu: Add NULL checks for function pointers
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 29 Nov 2023 07:07:34 +0000 (12:37 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2023 21:05:32 +0000 (16:05 -0500)
commit81577503efb49f4ad76af22f9941d72900ef4aab
tree1f6f1d93c038d9b299f2f228b2af87a225f93d4f
parent6fce23a4d8c5f93bf80b7f122449fbb97f1e40dd
drm/amdgpu: Add NULL checks for function pointers

Check if function is implemented before making the call.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c