]> err.no Git - linux-2.6/commit
[MTD] [NAND] Wrong calculation of page number in nand_block_bad()
authorKnobloch, Thomas <knobloch@siemens.com>
Fri, 27 Apr 2007 11:19:36 +0000 (13:19 +0200)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 27 Apr 2007 14:13:53 +0000 (15:13 +0100)
commit78ab67da1002d954ea4c3e2b441e2483c41f94e8
treeea967c51ff6d1b126f3db8ff7c73dfaa63875091
parentef2e58ea6b9931c3a4816c66593da49bb20e3b24
[MTD] [NAND] Wrong calculation of page number in nand_block_bad()

In case that there is no memory based bad block table available the
function nand_block_checkbad() in drivers/mtd/nand/nand_base.c will call
nand_block_bad() directly. When parameter 'getchip' is set to zero,
nand_block_bad() will not right shift the offset to calculate the
correct page number.

Signed-off-by: Thomas Knobloch <knobloch@siemens.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/nand_base.c