]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/iommu/dma-iommu.c
Merge tag 'iommu-updates-v4.13' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / drivers / iommu / dma-iommu.c
index 9403336f1fa64f0290f44d1eed9b30402fba7814..9d1cebe7f6cbb14517718f5fd6d03de7ee503956 100644 (file)
@@ -316,7 +316,7 @@ int iommu_dma_init_domain(struct iommu_domain *domain, dma_addr_t base,
                 * If we have devices with different DMA masks, move the free
                 * area cache limit down for the benefit of the smaller one.
                 */
-               iovad->dma_32bit_pfn = min(end_pfn, iovad->dma_32bit_pfn);
+               iovad->dma_32bit_pfn = min(end_pfn + 1, iovad->dma_32bit_pfn);
 
                return 0;
        }