OSDN Git Service

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)
commit6182480637d98100056883e8191b4f69c5313847
tree23609851ecaa641ffd61dac15a437fe97eac3acd
parent17a7d24aa89d64c325dce97e1e314a8558b26fca
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