]> asedeno.scripts.mit.edu Git - linux.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)
commite7cdcba451b3ddd68e714875be13e782577c9e4a
tree6b018f987460b8ed6a66b05b0af736ca89b7810d
parent42996f2d8e540b2baa7c26a4dac2f50dbbc9344d
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