[PATCH 1/2] powerpc/prom: Remove VLA in prom_check_platform_support()

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


On Wed, 5 Sep 2018 at 11:40, Suraj Jitindar Singh
<sjitindarsingh at gmail.com> wrote:
>
> In prom_check_platform_support() we retrieve and parse the
> "ibm,arch-vec-5-platform-support" property of the chosen node.
> Currently we use a variable length array however to avoid this use an
> array of constant length 8.
>
> This property is used to indicate the supported options of vector 5
> bytes 23-26 of the ibm,architecture.vec node. Each of these options
> is a pair of bytes, thus for 4 options we have a max length of 8 bytes.
>
> 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