crypto: qat - Remove VLA usage
authorKees Cook <keescook@chromium.org>
Tue, 7 Aug 2018 21:18:41 +0000 (14:18 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 4 Sep 2018 03:35:04 +0000 (11:35 +0800)
commit1299c9cfae6dccd79e4e035cad44f99fdb828593
tree3925e2b012262864c9778212ba93c30168b76c49
parenta9f7f88a12f1494deca1fd9e173c7ae886d14f91
crypto: qat - Remove VLA usage

In the quest to remove all stack VLA usage from the kernel[1], this uses
the new upper bound for the stack buffer. Also adds a sanity check.

[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/qat_algs.c