OSDN Git Service

video: fbdev: fsl-diu-fb: Remove VLA usage
authorKees Cook <keescook@chromium.org>
Tue, 24 Jul 2018 17:11:26 +0000 (19:11 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 24 Jul 2018 17:11:26 +0000 (19:11 +0200)
commit4a1208c5b46a711d7d8bb2b327ae5c2b144a8e72
tree2ca7439003be05fc0e025c8696b566a8f64a27f0
parent31e1391af210fdbf177966579a83d14e6a4cd828
video: fbdev: fsl-diu-fb: Remove VLA usage

In the quest to remove all stack VLA usage from the kernel[1], this moves
the buffer off the stack (since it could be as much as 1024 bytes), and
uses a new area in the cursor data structure. Additionally adds missed
documentation and removes redundant assignments.

[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Timur Tabi <timur@kernel.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/fsl-diu-fb.c