Skip to content
Snippets Groups Projects
Commit 8360b66b authored by Wolfgang Denk's avatar Wolfgang Denk Committed by Scott Wood
Browse files

nand/onenand: Fix missing argument checking for "markbad" command


The "nand markbad" and "onenand markbad" commands did not check if an
argument was passed; if this was forgotten, no error was raised but
block 0 was marked as bad.

While fixing this bug, clean up the code a bit and allow to pass more
than one block address, thus allowing to mark several blocks as bad
in a single command invocation.

Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent cd84423a
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