dma-direct: add missing set_memory_decrypted() for coherent mapping
authorDavid Rientjes <rientjes@google.com>
Thu, 11 Jun 2020 19:20:32 +0000 (12:20 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 23 Jun 2020 12:13:54 +0000 (14:13 +0200)
commit1a2b3357e860d890f8045367b179c7e7e802cd71
tree9620e8050e5cba9e7ae8efa923d19d2c6b64ee29
parent56fccf21d1961a06e2a0c96ce446ebf036651062
dma-direct: add missing set_memory_decrypted() for coherent mapping

When a coherent mapping is created in dma_direct_alloc_pages(), it needs
to be decrypted if the device requires unencrypted DMA before returning.

Fixes: 3acac065508f ("dma-mapping: merge the generic remapping helpers into dma-direct")
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/direct.c