]> Git Repo - u-boot.git/commit - cmd/onenand.c
nand/onenand: Fix missing argument checking for "markbad" command
authorWolfgang Denk <[email protected]>
Sun, 24 May 2009 15:34:33 +0000 (17:34 +0200)
committerScott Wood <[email protected]>
Tue, 7 Jul 2009 22:58:05 +0000 (17:58 -0500)
commit8360b66bac9567701027a0087274d0c9b2fe8d6b
tree6278f88b25ecfd5b12eb9a68e93d8bd2dd77d8f4
parentcd84423a09f3a08029fe41c1db96168debd0b51f
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: Wolfgang Denk <[email protected]>
Signed-off-by: Scott Wood <[email protected]>
common/cmd_nand.c
common/cmd_onenand.c
This page took 0.028869 seconds and 4 git commands to generate.