[dm-devel] [PATCH v3 11/12] security, crypto: LLVMLinux: Remove VLAIS from ima_crypto.c

Linus Torvalds torvalds at linux-foundation.org
Mon Sep 15 14:21:46 UTC 2014


On Mon, Sep 15, 2014 at 12:30 AM,  <behanw at converseincode.com> wrote:
> From: Behan Webster <behanw at converseincode.com>
>
> 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.

You only made the first case use SHASH_DESC_ON_STACK, the two other
cases you left in the ugly format. Was that just an oversight, or was
there some reason for it?

             Linus




More information about the dm-devel mailing list