]> git.baikalelectronics.ru Git - kernel.git/commit
security, crypto: LLVMLinux: Remove VLAIS from ima_crypto.c
authorBehan Webster <behanw@converseincode.com>
Fri, 4 Apr 2014 21:18:00 +0000 (18:18 -0300)
committerBehan Webster <behanw@converseincode.com>
Tue, 14 Oct 2014 08:51:24 +0000 (10:51 +0200)
commit8b4f4d5c200291befaded6df35e08247f8de24d4
tree15d0a4704557a0178f5b669bbab620c5019236ce
parent20f85702dea7653e18c91f710272aecae6a93c16
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
security/integrity/ima/ima_crypto.c