From: Behan Webster Date: Fri, 4 Apr 2014 21:18:00 +0000 (-0300) Subject: security, crypto: LLVMLinux: Remove VLAIS from ima_crypto.c X-Git-Tag: fixes-against-v3.18-rc2~66^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=357aabed626fe3fc753a99ef1d652f4e2d82ba26;p=pandora-kernel.git 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 Reviewed-by: Mark Charlebois Reviewed-by: Jan-Simon Möller Acked-by: Herbert Xu Acked-by: Dmitry Kasatkin Cc: tglx@linutronix.de --- Reading git-diff-tree failed