Skip to content
Snippets Groups Projects
Commit a7988659 authored by Thomas Knobloch's avatar Thomas Knobloch Committed by Stefan Roese
Browse files

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: default avatarThomas Knobloch <knobloch@siemens.com>
Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 8d1c439e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment