[2.6 patch] drivers/mtd/nand/cafe_ecc.c: fix an off-by-one in a BUG_ON

David Woodhouse dwmw2 at infradead.org
Fri Feb 9 10:06:17 EST 2007


On Fri, 2007-02-02 at 15:29 +0100, Adrian Bunk wrote:
> 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(). 

Applied; thanks.

-- 
dwmw2





More information about the linux-mtd mailing list