]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: ste_dma40: Remove VLA usage
authorKees Cook <keescook@chromium.org>
Fri, 29 Jun 2018 18:51:07 +0000 (11:51 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 2 Jul 2018 12:16:24 +0000 (17:46 +0530)
commit26bf5eb331ec1380d589772d5b554a26b413e4db
tree97a7f7df406b79014a9c21fe7c547fd183ca37a9
parent2358d48a6db92cb022eb848a0943363a742d51a5
dmaengine: ste_dma40: Remove VLA usage

In the quest to remove all stack VLA usage from the kernel[1], this
switches to using a pre-allocated scratch register space, set up with
all other other allocations.

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

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ste_dma40.c