mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 02:05:33 +00:00
crypto: lib/aesgcm - Reduce stack usage in libaesgcm_init
The stack frame in libaesgcm_init triggers a size warning on x86-64. Reduce it by making buf static. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
7b6092ee7a
commit
de662429f3
@ -697,7 +697,7 @@ static int __init libaesgcm_init(void)
|
||||
u8 tagbuf[AES_BLOCK_SIZE];
|
||||
int plen = aesgcm_tv[i].plen;
|
||||
struct aesgcm_ctx ctx;
|
||||
u8 buf[sizeof(ptext12)];
|
||||
static u8 buf[sizeof(ptext12)];
|
||||
|
||||
if (aesgcm_expandkey(&ctx, aesgcm_tv[i].key, aesgcm_tv[i].klen,
|
||||
aesgcm_tv[i].clen - plen)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user