[PATCH 5.10 389/530] iommu: Fix a boundary issue to avoid performance drop