]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbfdbc395f1c40b8697334910539e98484dcbfde2
treedee08962b88b6ec4a7ae5840e304ac3908aed08c
parent83717e46b92e45ed3c1d8e5764cefc8af572c7fb
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