commit | d4b9e425d23a2c38e2cc52f62c79773ccff0ecc4 | [log] [tgz] |
---|---|---|
author | Tobin C. Harding <me@tobin.cc> | Mon Mar 12 15:27:23 2018 +1100 |
committer | Rob Herring <robh@kernel.org> | Sat Mar 17 18:52:41 2018 -0500 |
tree | fcca145013ecfb441fa9b6fca94b84ad3c9042b3 | |
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>