diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 644200bff5893fa478c40f1a5e2a7222b209fce5..54a5ec5eea0d9452ec2d954d2726744d5a7dd9bf 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -561,7 +561,7 @@ static inline void iommu_iotlb_gather_add_page(struct iommu_domain *domain, * structure can be rewritten. */ if (gather->pgsize != size || - end < gather->start || start > gather->end) { + end + 1 < gather->start || start > gather->end + 1) { if (gather->pgsize) iommu_iotlb_sync(domain, gather); gather->pgsize = size;