diff options
author | Behan Webster <behanw@converseincode.com> | 2014-04-04 23:18:00 +0200 |
---|---|---|
committer | Behan Webster <behanw@converseincode.com> | 2014-10-14 10:51:24 +0200 |
commit | 357aabed626fe3fc753a99ef1d652f4e2d82ba26 (patch) | |
tree | 15d0a4704557a0178f5b669bbab620c5019236ce /security/yama | |
parent | crypto: LLVMLinux: Remove VLAIS usage from libcrc32c.c (diff) | |
download | linux-357aabed626fe3fc753a99ef1d652f4e2d82ba26.tar.xz linux-357aabed626fe3fc753a99ef1d652f4e2d82ba26.zip |
security, crypto: LLVMLinux: Remove VLAIS from ima_crypto.c
Replaced the use of a Variable Length Array In Struct (VLAIS) with a C99
compliant equivalent. This patch allocates the appropriate amount of memory
using a char array using the SHASH_DESC_ON_STACK macro.
The new code can be compiled with both gcc and clang.
Signed-off-by: Behan Webster <behanw@converseincode.com>
Reviewed-by: Mark Charlebois <charlebm@gmail.com>
Reviewed-by: Jan-Simon Möller <dl9pf@gmx.de>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Cc: tglx@linutronix.de
Diffstat (limited to 'security/yama')
0 files changed, 0 insertions, 0 deletions