From: David Brownell Date: Wed, 22 Apr 2009 02:51:20 +0000 (-0700) Subject: mtd: nand: don't walk past end of oobfree[] X-Git-Tag: v2.6.31-rc1~53^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81d19b04a865f9fcc0ca01b20be806169ff9efb3;p=pandora-kernel.git mtd: nand: don't walk past end of oobfree[] Resolve issue noted by Sneha: 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. With ECC_HW_SYNDROME and 4KiB page chips, it's fairly likely there *won't* be one. Signed-off-by: David Brownell Cc: "Narnakaje, Snehaprabha" " Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed