]> git.baikalelectronics.ru Git - kernel.git/commit
RAID/s390: Remove VLA usage
authorKees Cook <keescook@chromium.org>
Tue, 3 Jul 2018 19:52:21 +0000 (12:52 -0700)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 4 Jul 2018 06:37:50 +0000 (08:37 +0200)
commitbc325c6380c0ad9cc16a759b7739a59283aa0e5f
treef2b1b0b045f093c29b6e0bf94dbeef9e28de9586
parent3bbe6807272fde800cf5eac658d99553b493ed02
RAID/s390: Remove VLA usage

In the quest to remove all stack VLA usage from the kernel[1], this moves
the "$#" replacement from being an argument to being inside the function,
which avoids generating VLAs.

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

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
lib/raid6/s390vx.uc