]> git.baikalelectronics.ru Git - kernel.git/commit
dma-direct: use the correct size for dma_set_encrypted()
authorDexuan Cui <decui@microsoft.com>
Wed, 22 Jun 2022 19:14:24 +0000 (12:14 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 23 Jun 2022 13:26:59 +0000 (15:26 +0200)
commit1cc66bd1b095c6082a2d11b3c7aee368ef3c0a72
tree038a4329be672c6a8051f3f8291c63105aa6658f
parent4764e99deee460568d59e6c88fcf402440c6a616
dma-direct: use the correct size for dma_set_encrypted()

The third parameter of dma_set_encrypted() is a size in bytes rather than
the number of pages.

Fixes: d440f8c51650 ("dma-direct: factor out dma_set_{de,en}crypted helpers")
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/direct.c