]> err.no Git - linux-2.6/commit
[POWERPC] Off-by-one in /arch/ppc/platforms/mpc8*
authorEric Sesterhenn <snakebyte@gmx.de>
Tue, 10 Oct 2006 21:37:29 +0000 (14:37 -0700)
committerPaul Mackerras <paulus@samba.org>
Mon, 16 Oct 2006 05:52:14 +0000 (15:52 +1000)
commitbb579cf1d413b930be0241987b848e0f0c1b292f
tree2a57ee873749bbb12eca3b1f5cff01fa22ddf760
parentee4ea82c07fa8aa46037962ec3e8b40c5144b5eb
[POWERPC] Off-by-one in /arch/ppc/platforms/mpc8*

A find -iname \*.[ch] | xargs grep "> ARRAY_SIZE(" revealed several
incorrect usages of ARRAY_SIZE in the mpc drivers.  The last element in the
array is always ARRAY_SIZE()-1, this patch modifies the bounds checks
accordingly.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Cc: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc/platforms/mpc8272ads_setup.c
arch/ppc/platforms/mpc866ads_setup.c
arch/ppc/platforms/mpc885ads_setup.c