]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC, thunderx: Remove VLA usage
authorKees Cook <keescook@chromium.org>
Fri, 29 Jun 2018 18:48:50 +0000 (11:48 -0700)
committerBorislav Petkov <bp@suse.de>
Mon, 9 Jul 2018 09:33:02 +0000 (11:33 +0200)
commit63b1a12882f6d3329d0519e23835e530e5d2351a
tree613906b2b343dab28743ee97f4e24ac1727f5145
parentb6214df757fc2936cdc7f558369cd4af3b0d1398
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: Kees Cook <keescook@chromium.org>
Acked-by: Jan 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
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/thunderx_edac.c