linux/drivers/mtd/onenand
Kyungmin Park ad28634366 [MTD] [OneNAND] Fix access the past of the real oobfree array
Here it's not the case: all the entries are occupied by
OOB chunks. Therefore, once we get into a loop like

        for (free = this->ecclayout->oobfree; free->length; ++free) {
	}

we might end up scanning past the real oobfree array.

Probably the best way out, as the same thing might happen for common NAND
as well, is to check index against MTD_MAX_OOBFREE_ENTRIES.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-04-25 11:09:23 +01:00
..
generic.c Merge git://git.infradead.org/~kmpark/onenand-mtd-2.6 2006-11-29 00:03:10 +00:00
Kconfig [MTD] [OneNAND] Update Samsung OneNAND official URL 2007-04-25 11:09:06 +01:00
Makefile Revert "[PATCH] OneNAND: Add simulator" 2005-11-07 01:11:04 +01:00
onenand_base.c [MTD] [OneNAND] Fix access the past of the real oobfree array 2007-04-25 11:09:23 +01:00
onenand_bbt.c [MTD] OneNAND: Error message printing and bad block scan erros 2007-02-07 12:15:01 +09:00