]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2343e689c47aaae17bc3a5a3446ad32930c72e8
tree5823410573206e2a9d1968cec3f0e53be11af4af
parentdc4394b41d15857bed00e4fdbd806afa7af85d19
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