From: Adrian Bunk Date: Fri, 2 Feb 2007 14:29:19 +0000 (+0100) Subject: [MTD] [NAND] Fix an off-by-one in a BUG_ON in CAFÉ ECC correction. X-Git-Tag: v2.6.21-rc1~66^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d24030f0f71390b1a01796d664445352bd403269;p=pandora-kernel.git [MTD] [NAND] Fix an off-by-one in a BUG_ON in CAFÉ ECC correction. err_pos_lut[4096] of an array with 4096 elements is a bug. Spotted by the Coverity checker. While I was at it, I also converted it to ARRAY_SIZE(). Signed-off-by: Adrian Bunk Signed-off-by: David Woodhouse --- Reading git-diff-tree failed