From: Eric Sesterhenn Date: Tue, 10 Oct 2006 21:37:29 +0000 (-0700) Subject: [POWERPC] Off-by-one in /arch/ppc/platforms/mpc8* X-Git-Tag: v2.6.19-rc3~153^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb579cf1d413b930be0241987b848e0f0c1b292f;p=pandora-kernel.git [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 Cc: Vitaly Bordug Signed-off-by: Andrew Morton Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed