diff options
author | Kees Cook <keescook@chromium.org> | 2018-06-29 11:47:40 -0700 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-07-04 17:44:10 +0200 |
commit | c51756d56e20a12476e4e192b332fac39c1550ca (patch) | |
tree | 63e46f76fcf6dcb34b2aa30ee5084746d76c195f /drivers/gpu/drm/Kconfig | |
parent | 968d72e6a5105a18fe17c0a8b4ef2951d0eb42dd (diff) | |
download | linux-c51756d56e20a12476e4e192b332fac39c1550ca.tar.gz linux-c51756d56e20a12476e4e192b332fac39c1550ca.tar.bz2 linux-c51756d56e20a12476e4e192b332fac39c1550ca.zip |
drm/sun4i: Remove VLA usage
In the quest to remove all stack VLA usage from the kernel[1], this
switches to using a kmalloc allocation and moves all the size calculations
to the start to do an allocation. If an upper bounds on the mode timing
calculations could be determined, a fixed stack size could be used instead.
[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180629184740.GA37415@beast
Diffstat (limited to 'drivers/gpu/drm/Kconfig')
0 files changed, 0 insertions, 0 deletions