nand: Fix access to last block in NAND devices
authorStefan Roese <sr@denx.de>
Wed, 9 Dec 2009 08:01:43 +0000 (09:01 +0100)
committerScott Wood <scottwood@freescale.com>
Fri, 11 Dec 2009 19:11:57 +0000 (13:11 -0600)
commitf4cfe42758192d09f8375e384cc000aa70d97029
tree7b117233a8013dbb90db35cc9ed683d877a858cd
parent3b887ca8ce72cc12129183538f6e828db13f4867
nand: Fix access to last block in NAND devices

Currently, the last block of NAND devices can't be accessed. This patch
fixes this issue by correcting the boundary checking (off-by-one error).

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Wolfgang Denk <wd@denx.de>
drivers/mtd/nand/nand_util.c