]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure - remove VLAs
authorAntoine Tenart <antoine.tenart@bootlin.com>
Mon, 14 May 2018 13:10:55 +0000 (15:10 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 26 May 2018 16:11:35 +0000 (00:11 +0800)
commitcdc730fda1efebc0fdfb1732917404ece0e3a37e
tree23609851ecaa641ffd61dac15a437fe97eac3acd
parent5fc18f3155407639b35e900d3556f9c026e260a4
crypto: inside-secure - remove VLAs

This patch removes the use of VLAs to allocate requests on the stack, by
removing both SKCIPHER_REQUEST_ON_STACK and AHASH_REQUEST_ON_STACK. As
we still need to allocate requests on the stack to ease the creation of
invalidation requests a new, non-VLA, definition is used:
EIP197_REQUEST_ON_STACK.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.h
drivers/crypto/inside-secure/safexcel_cipher.c
drivers/crypto/inside-secure/safexcel_hash.c