Skip to content
Commit 96a539fa authored by David Rientjes's avatar David Rientjes Committed by Christoph Hellwig
Browse files

dma-direct: re-encrypt memory if dma_direct_alloc_pages() fails



If arch_dma_set_uncached() fails after memory has been decrypted, it needs
to be re-encrypted before freeing.

Fixes: fa7e2247 ("dma-direct: make uncached_kernel_address more general")
Signed-off-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 633d5fce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment