]> asedeno.scripts.mit.edu Git - linux.git/commit
dma-direct: fix DMA_ATTR_NO_KERNEL_MAPPING
authorChristoph Hellwig <hch@lst.de>
Tue, 6 Aug 2019 11:33:23 +0000 (14:33 +0300)
committerChristoph Hellwig <hch@lst.de>
Sat, 10 Aug 2019 17:52:45 +0000 (19:52 +0200)
commitcf14be0b41c659ede89abef3f7ec0e98e6cfea5b
treeae57280bce6c3482f37a02b09fe5785a4006532b
parent451577f3e3a9bf1861218641dbbf98e214e77851
dma-direct: fix DMA_ATTR_NO_KERNEL_MAPPING

The new DMA_ATTR_NO_KERNEL_MAPPING needs to actually assign
a dma_addr to work.  Also skip it if the architecture needs
forced decryption handling, as that needs a kernel virtual
address.

Fixes: d98849aff879 (dma-direct: handle DMA_ATTR_NO_KERNEL_MAPPING in common code)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
kernel/dma/direct.c