diff options
| author | Kees Cook <keescook@chromium.org> | 2018-03-07 23:54:44 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-08 20:52:33 +0300 |
| commit | d956a1a9d32cb14673f5f03ef607d84d603a5ed4 (patch) | |
| tree | 151ffa85017e8977269b87af0e2cef281d0c27df /tools/perf/scripts/python | |
| parent | 08c5e116569549d07d69b0839f944d8188b1c4b4 (diff) | |
| download | linux-d956a1a9d32cb14673f5f03ef607d84d603a5ed4.tar.xz | |
staging: lustre: Remove VLA usage
The kernel would like to have all stack VLA usage removed[1]. This switches
to a simple kasprintf() instead, and in the process fixes an off-by-one
between the allocation and the sprintf (allocation did not include NULL
byte in calculation).
[1] https://lkml.org/lkml/2018/3/7/621
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
