diff options
author | Kees Cook <keescook@chromium.org> | 2018-03-08 13:57:02 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-16 23:35:53 +0800 |
commit | a5b2ea2ce96a5cb3582dc0cd3010ad9183ecdc09 (patch) | |
tree | a72a684b951e64b315316e2a40f3a5f0923356a0 /crypto/async_tx/async_raid6_recov.c | |
parent | 60f8e97aa607577b53c3420265e441b619c36574 (diff) | |
download | linux-crypto-a5b2ea2ce96a5cb3582dc0cd3010ad9183ecdc09.tar.gz linux-crypto-a5b2ea2ce96a5cb3582dc0cd3010ad9183ecdc09.zip |
crypto: ecc - Remove stack VLA usage
On the quest to remove all VLAs from the kernel[1], this switches to
a pair of kmalloc regions instead of using the stack. This also moves
the get_random_bytes() after all allocations (and drops the needless
"nbytes" variable).
[1] https://lkml.org/lkml/2018/3/7/621
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/async_tx/async_raid6_recov.c')
0 files changed, 0 insertions, 0 deletions