arm/mach-vexpress: array accessed out of bounds
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 14 Apr 2014 07:42:01 +0000 (08:42 +0100)
committerPawel Moll <pawel.moll@arm.com>
Thu, 24 Apr 2014 10:41:12 +0000 (11:41 +0100)
commitbb6dd5757c12e9f3f25da971f1ea45c777ae79ab
treedee08962b88b6ec4a7ae5840e304ac3908aed08c
parent6b4ed8b00e93bd31f24a25f59ed8d1b808d0cc00
arm/mach-vexpress: array accessed out of bounds

dcscb_allcpus_mask is an array of size 2.

The index variable cluster has to be checked against this limit
before accessing the array.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
arch/arm/mach-vexpress/dcscb.c