diff options
author | Suraj Jitindar Singh <sjitindarsingh@gmail.com> | 2018-09-05 12:09:50 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-09-19 22:08:12 +1000 |
commit | ab91239942a900e209f724886273060d9288f6fb (patch) | |
tree | afa0bb1052bd21643d7f888aaf630e1c03cf1a74 /arch/powerpc/platforms | |
parent | powerpc: Fix duplicate const clang warning in user access code (diff) | |
download | linux-dev-ab91239942a900e209f724886273060d9288f6fb.tar.xz linux-dev-ab91239942a900e209f724886273060d9288f6fb.zip |
powerpc/prom: Remove VLA in prom_check_platform_support()
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@gmail.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms')
0 files changed, 0 insertions, 0 deletions