]> 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)
commit381c5cb12db6104cb9bad3b06367cb98d05179cf
tree038a4329be672c6a8051f3f8291c63105aa6658f
parent08aafa0d475a08e31a13403e9df41c7179f4bdcd
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: dc4394b41d15 ("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