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 20:22:37 +0000 (15:22 -0500)
commit6146081d58e3dd0c50ceb5a70a6906640727ff96
tree0e59b2a556d3d262d76b8b90f470c4347c59ffd1
parent44f3356e36c2082f0f91c4f6b8859c577cee14a4
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