summaryrefslogtreecommitdiff
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorTobin C. Harding <me@tobin.cc>2018-03-12 15:27:23 +1100
committerRob Herring <robh@kernel.org>2018-03-17 18:52:41 -0500
commitd4b9e425d23a2c38e2cc52f62c79773ccff0ecc4 (patch)
treefcca145013ecfb441fa9b6fca94b84ad3c9042b3 /drivers/macintosh
parenta514266ba675b28ff223ecd1fc431810ec828337 (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 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions