]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ccree: copy IV to DMAable memory
authorGilad Ben-Yossef <gilad@benyossef.com>
Thu, 2 Nov 2017 08:10:21 +0000 (08:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Nov 2017 15:46:03 +0000 (16:46 +0100)
commitaec6870b4db5f4f5af76ea520c042a0e93d0ddfa
tree6b018f987460b8ed6a66b05b0af736ca89b7810d
parent5358dc6c271476d4390d55615a97bb88ace3859b
staging: ccree: copy IV to DMAable memory

We are being passed an IV buffer from unknown origin, which may be
stack allocated and thus not safe for DMA. Allocate a DMA safe
buffer for the IV and use that instead.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_cipher.c
drivers/staging/ccree/ssi_cipher.h