diff options
author | David Rientjes <rientjes@google.com> | 2020-06-11 12:20:28 -0700 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-06-17 09:29:38 +0200 |
commit | 633d5fce78a61e8727674467944939f55b0bcfab (patch) | |
tree | dabc0f82a9fdd62067b6d22b7d49eaeb4bd1bacf /kernel/irq/proc.c | |
parent | 26749b3201ab05e288fbf78fbc8585dfa2da3218 (diff) |
dma-direct: always align allocation size in dma_direct_alloc_pages()
dma_alloc_contiguous() does size >> PAGE_SHIFT and set_memory_decrypted()
works at page granularity. It's necessary to page align the allocation
size in dma_direct_alloc_pages() for consistent behavior.
This also fixes an issue when arch_dma_prep_coherent() is called on an
unaligned allocation size for dma_alloc_need_uncached() when
CONFIG_DMA_DIRECT_REMAP is disabled but CONFIG_ARCH_HAS_DMA_SET_UNCACHED
is enabled.
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel/irq/proc.c')
0 files changed, 0 insertions, 0 deletions