commit | c51756d56e20a12476e4e192b332fac39c1550ca | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Fri Jun 29 11:47:40 2018 -0700 |
committer | Maxime Ripard <maxime.ripard@bootlin.com> | Wed Jul 04 17:44:10 2018 +0200 |
tree | 63e46f76fcf6dcb34b2aa30ee5084746d76c195f | |
parent | 968d72e6a5105a18fe17c0a8b4ef2951d0eb42dd [diff] |
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