]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: cavium-octeon: fix out-of-bounds array access
authorAaro Koskinen <aaro.koskinen@nsn.com>
Fri, 1 Nov 2013 15:06:03 +0000 (17:06 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 23 Jan 2014 12:02:34 +0000 (13:02 +0100)
commit5d734cead75bed0a0d867dcb766e8ff19265bff0
treef272c76611a119a69f01238e4d91ca0f5fc97fa3
parentfe2313bb3630b6b097ff89c074e6d86bd7a4a57e
MIPS: cavium-octeon: fix out-of-bounds array access

When booting with in-kernel DTBs, the pruning code will enumerate
interfaces 0-4. However, there is memory reserved only for 4 so some
other data will get overwritten by cvmx_helper_interface_enumerate().

Signed-off-by: Aaro Koskinen <aaro.koskinen@nsn.com>
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6102/
arch/mips/cavium-octeon/executive/cvmx-helper.c