[PATCH 2/2] powerpc/pseries: Remove VLA from lparcfg_write()

Joel Stanley joel at jms.id.au
Mon Sep 17 12:37:16 AEST 2018


On Wed, 5 Sep 2018 at 11:40, Suraj Jitindar Singh
<sjitindarsingh at gmail.com> wrote:
>
> In lparcfg_write we hard code kbuf_sz and then use this as the variable
> length of kbuf creating a variable length array. Since we're hard coding
> the length anyway just define the array using this as the length and
> remove the need for kbuf_sz, thus removing the variable length array.
>
> Signed-off-by: Suraj Jitindar Singh <sjitindarsingh at gmail.com>

Reviewed-by: Joel Stanley <joel at jms.id.au>


More information about the Linuxppc-dev mailing list