Commit ced199dc858d57e807d3ec2a511c4bd9a4bd8765

Authored by Harvey Chapman
Committed by Scott Wood
1 parent 8fdf1e0f6d

nand: fix nand read.option parsing

"nand read.part addr off size" would be treated as "nand read.raw addr off 1"
It now fails as intended stating "Unknown nand command suffix '.part'"

Signed-off-by: Harvey Chapman <hchapman@3gfp.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -608,7 +608,7 @@
608 608 size_t rwsize;
609 609 ulong pagecount = 1;
610 610 int read;
611   - int raw;
  611 + int raw = 0;
612 612  
613 613 if (argc < 4)
614 614 goto usage;