NAND: Don't walk past end of oobfree[]
authorSandeep Paulraj <s-paulraj@ti.com>
Sat, 7 Nov 2009 19:25:18 +0000 (14:25 -0500)
committerScott Wood <scottwood@freescale.com>
Fri, 13 Nov 2009 22:56:16 +0000 (16:56 -0600)
commit5df3c2b62cebaa0ddb2817364f93726e5dbe3525
treeef484fb6a841c028f6684c216505948d07eb9128
parent18b5a4b43af3c8359cb568f4fa32d6b9dcebbf26
NAND: Don't walk past end of oobfree[]

When computing oobavail from the list of free areas in the OOB,
don't assume there will always be an unused slot at the end.
This syncs up with the kernel NAND driver.

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
drivers/mtd/nand/nand_base.c