[PATCH 5.15 021/374] drm/amdgpu: Add NULL checks for function pointers