[PATCH 5.12 492/677] iommu: Fix a boundary issue to avoid performance drop