Skip to content
Snippets Groups Projects
Commit 389e6620 authored by Schlaegl Manfred jun's avatar Schlaegl Manfred jun Committed by Scott Wood
Browse files

nand read.jffs2 (nand_legacy) in common/cmd_nand.c


Error with CONFIG_NAND_LEGACY in common/cmd_nand.c:
With current code "nand read.jffs2s" (read and skip bad blocks) is always interpreted as
"nand read.jffs2" (read and fill bad blocks with 0xff). This is because ".jffs2" is
tested before ".jffs2s" and only the first two characters are compared.

Correction:
Test for ".jffs2s" first and compare the first 7 characters.

Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent 6c869637
No related branches found
No related tags found
Loading
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