[PATCH AUTOSEL 6.10 21/34] drm/amd/display: Add null checker before passing variables