[PATCH openEuler-5.10 v2 312/548] drm/amd/display: check top_pipe_to_program pointer