OSDN Git Service

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)
commite6a785116df09f07c8d185fb18211d2bbacb047b
tree97a7f7df406b79014a9c21fe7c547fd183ca37a9
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
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