diff --git a/drivers/iommu/iova.c b/drivers/iommu/iova.c index e23001bfcfee996f8ab18f1695d1e3476bc6b9c2..080beca0197dcec22802dfc7fc0aebbbfec3c023 100644 --- a/drivers/iommu/iova.c +++ b/drivers/iommu/iova.c @@ -56,7 +56,7 @@ EXPORT_SYMBOL_GPL(init_iova_domain); static struct rb_node * __get_cached_rbnode(struct iova_domain *iovad, unsigned long *limit_pfn) { - if ((*limit_pfn != iovad->dma_32bit_pfn) || + if ((*limit_pfn > iovad->dma_32bit_pfn) || (iovad->cached32_node == NULL)) return rb_last(&iovad->rbroot); else {