]> asedeno.scripts.mit.edu Git - linux.git/commit
async_pq: Remove VLA usage
authorKyle Spiers <ksspiers@google.com>
Fri, 1 Jun 2018 20:20:16 +0000 (13:20 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 18 Jun 2018 14:47:38 +0000 (20:17 +0530)
commit89a7e2f752859c1a1696adf7b00b6ca9a5da2cda
tree20efdb47f75740523ed334e1f3e816c7b07dc039
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
async_pq: Remove VLA usage

In the quest to remove VLAs from the kernel[1], this adjusts the
allocation of coefs and blocks to use the existing maximum values
(with one new define, MAX_DISKS for coefs, and a reuse of the
existing NDISKS for blocks).

[1] https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Kyle Spiers <ksspiers@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
crypto/async_tx/async_pq.c
crypto/async_tx/raid6test.c