From: Harvey Chapman Date: Thu, 7 Feb 2013 11:34:44 +0000 (+0000) Subject: nand: fix nand read.option parsing X-Git-Tag: v2013.04-rc1~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ced199dc858d57e807d3ec2a511c4bd9a4bd8765;p=oweals%2Fu-boot.git 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 --- diff --git a/common/cmd_nand.c b/common/cmd_nand.c index 1568594ca4..495610c405 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -608,7 +608,7 @@ static int do_nand(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) size_t rwsize; ulong pagecount = 1; int read; - int raw; + int raw = 0; if (argc < 4) goto usage;