diff options
author | 2020-08-20 10:48:17 -0700 | |
---|---|---|
committer | 2020-08-20 10:48:17 -0700 | |
commit | d271b51c60ebe71e0435a9059b315a3d8bb8a099 (patch) | |
tree | 5090b5525190dedc16b4e308e9d776fd240b80b3 /drivers | |
parent | afs: Fix key ref leak in afs_put_operation() (diff) | |
parent | dma-pool: Only allocate from CMA when in same memory zone (diff) | |
download | linux-d271b51c60ebe71e0435a9059b315a3d8bb8a099.tar.gz linux-d271b51c60ebe71e0435a9059b315a3d8bb8a099.tar.bz2 linux-d271b51c60ebe71e0435a9059b315a3d8bb8a099.zip |
Merge tag 'dma-mapping-5.9-1' of git://git.infradead.org/users/hch/dma-mapping
Pull dma-mapping fixes from Christoph Hellwig:
"Fix more fallout from the dma-pool changes (Nicolas Saenz Julienne,
me)"
* tag 'dma-mapping-5.9-1' of git://git.infradead.org/users/hch/dma-mapping:
dma-pool: Only allocate from CMA when in same memory zone
dma-pool: fix coherent pool allocations for IOMMU mappings
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iommu/dma-iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c index 4959f5df21bd..5141d49a046b 100644 --- a/drivers/iommu/dma-iommu.c +++ b/drivers/iommu/dma-iommu.c @@ -1035,8 +1035,8 @@ static void *iommu_dma_alloc(struct device *dev, size_t size, if (IS_ENABLED(CONFIG_DMA_DIRECT_REMAP) && !gfpflags_allow_blocking(gfp) && !coherent) - cpu_addr = dma_alloc_from_pool(dev, PAGE_ALIGN(size), &page, - gfp); + page = dma_alloc_from_pool(dev, PAGE_ALIGN(size), &cpu_addr, + gfp, NULL); else cpu_addr = iommu_dma_alloc_pages(dev, size, &page, gfp, attrs); if (!cpu_addr) |