[PATCH 5.18 115/879] drm/plane: Move range check for format_count earlier