commit | d24030f0f71390b1a01796d664445352bd403269 | [log] [tgz] |
---|---|---|
author | Adrian Bunk <bunk@stusta.de> | Fri Feb 02 15:29:19 2007 +0100 |
committer | David Woodhouse <dwmw2@infradead.org> | Fri Feb 09 15:06:02 2007 +0000 |
tree | fc993b1618c48aa6525750b70fc5ffd48f476d02 | |
parent | 0373615579c7359dfd0bc66139c2e7bf67793480 [diff] |
[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 <bunk@stusta.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org>