[PATCH 6.0 740/862] drm/amd/display: Fix variable dereferenced before check