Skip to content
Commit 6663484b authored by Kees Cook's avatar Kees Cook Committed by Borislav Petkov
Browse files

EDAC, thunderx: Remove VLA usage



In the quest to remove all stack VLA usage from the kernel[1], switch to
using a kmalloc-allocated buffer instead of stack space. This should be
fine since the existing routine is allocating memory too.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Acked-by: default avatarJan Glauber <jglauber@cavium.com>
Cc: David Daney <david.daney@cavium.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20180629184850.GA37464@beast
Link: https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com

 [1]
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
parent 6c974d4d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment