[PATCH 6.1 297/372] cxl/region: Move region-position validation to a helper