[PATCH openEuler-5.10 070/236] drm/gma500: Fix end of loop tests for list_for_each_entry