dma-direct: don't call dma_set_decrypted for remapped allocations
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Oct 2021 07:20:39 +0000 (09:20 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 7 Dec 2021 11:47:06 +0000 (12:47 +0100)
commit5570449b6876f215d49ac4db9ccce6ff7aa1e20a
tree5823410573206e2a9d1968cec3f0e53be11af4af
parent4d0564785bb03841e4b5c5b31aa4ecd1eb0d01bb
dma-direct: don't call dma_set_decrypted for remapped allocations

Remapped allocations handle the encrypted bit through the pgprot passed
to vmap, so there is no call dma_set_decrypted.  Note that this case is
currently entirely theoretical as no valid kernel configuration supports
remapped allocations and memory encryption currently.

Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/direct.c