linux/drivers/mtd
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
..
chips Use menuconfig objects: MTD 2007-04-19 16:21:41 -05:00
devices Use menuconfig objects: MTD 2007-04-19 16:21:41 -05:00
maps Use menuconfig objects: MTD 2007-04-19 16:21:41 -05:00
nand Use menuconfig objects: MTD 2007-04-19 16:21:41 -05:00
onenand [MTD] [OneNAND] Fix access the past of the real oobfree array 2007-04-25 11:09:23 +01:00
afs.c
cmdlinepart.c
ftl.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
inftlcore.c
inftlmount.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
Kconfig Use menuconfig objects: MTD 2007-04-19 16:21:41 -05:00
Makefile [MTD] add MTD_BLKDEVS Kconfig option 2006-11-29 16:58:15 +02:00
mtd_blkdevs.c [MTD] Finish conversion mtd_blkdevs to use the kthread API 2007-04-22 20:48:29 +01:00
mtdblock_ro.c
mtdblock.c
mtdchar.c [MTD] Fix length comparison in MEMREADOOB 2007-04-17 13:40:00 -04:00
mtdconcat.c [MTD] [NAND] make oobavail public 2007-03-08 09:17:43 +00:00
mtdcore.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
mtdpart.c [MTD] Correct partition failed erase address 2007-03-08 10:45:04 +00:00
nftlcore.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
nftlmount.c
redboot.c [MTD] Improve heuristic for detecting wrong-endian RedBoot partition table 2007-02-10 09:58:31 +00:00
rfd_ftl.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 2007-01-18 10:34:51 +11:00
ssfdc.c [MTD] Fix ssfdc blksize typo 2006-12-11 09:43:38 +00:00