diff options
author | 2018-06-12 13:08:40 +0200 | |
---|---|---|
committer | 2018-06-19 14:19:21 +0100 | |
commit | dd65a941f6ba473a5cb9d013d57fa43b48450a04 (patch) | |
tree | 3239077195d29ca00d83dffe4d3097128444055e /include/linux | |
parent | Linux 4.18-rc1 (diff) | |
download | linux-dd65a941f6ba.tar.gz linux-dd65a941f6ba.tar.bz2 linux-dd65a941f6ba.zip |
arm64: dma-mapping: clear buffers allocated with FORCE_CONTIGUOUS flag
dma_alloc_*() buffers might be exposed to userspace via mmap() call, so
they should be cleared on allocation. In case of IOMMU-based dma-mapping
implementation such buffer clearing was missing in the code path for
DMA_ATTR_FORCE_CONTIGUOUS flag handling, because dma_alloc_from_contiguous()
doesn't honor __GFP_ZERO flag. This patch fixes this issue. For more
information on clearing buffers allocated by dma_alloc_* functions,
see commit 6829e274a623 ("arm64: dma-mapping: always clear allocated
buffers").
Fixes: 44176bb38fa4 ("arm64: Add support for DMA_ATTR_FORCE_CONTIGUOUS to IOMMU")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions