]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure - fix request allocations in invalidation path
authorAntoine Ténart <antoine.tenart@free-electrons.com>
Mon, 11 Dec 2017 11:10:57 +0000 (12:10 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Dec 2017 08:48:00 +0000 (19:48 +1100)
commit18e3e2a6e65295afb4b53886aeb9dcbfbea13323
tree8e95ed4374b2603865df65c1e5895fc50ee0c97d
parentec607d5a85d5db25d8370bf8314cfa1ba4bf5417
crypto: inside-secure - fix request allocations in invalidation path

This patch makes use of the SKCIPHER_REQUEST_ON_STACK and
AHASH_REQUEST_ON_STACK helpers to allocate enough memory to contain both
the crypto request structures and their embedded context (__ctx).

Fixes: 4db5ddddd6e4 ("crypto: inside-secure - add SafeXcel EIP197 crypto engine driver")
Suggested-by: Ofer Heifetz <oferh@marvell.com>
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_cipher.c
drivers/crypto/inside-secure/safexcel_hash.c