diff options
author | Tobin C. Harding <me@tobin.cc> | 2018-03-12 15:27:23 +1100 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2018-03-17 18:52:41 -0500 |
commit | d4b9e425d23a2c38e2cc52f62c79773ccff0ecc4 (patch) | |
tree | fcca145013ecfb441fa9b6fca94b84ad3c9042b3 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | a514266ba675b28ff223ecd1fc431810ec828337 (diff) |
of: unittest: Remove VLA stack usage
The kernel would like to have all stack VLA usage removed[1]. This is a
test function so the execution speed is not critical. We can allocate
memory for this buffer instead of using a VLA. If kmalloc() fails just
return.
Allocate buffer with kmalloc().
[1]: https://lkml.org/lkml/2018/3/7/621
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions