From: DENX Support System Date: Sat, 1 Apr 2006 00:20:27 +0200 Subject: [U-Boot-Users] Re: [DNX#2006040142000624] Bug fix on cmd_nand.c Message-ID: <1143843627.181463.311097746@castor.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello list, inside the automatic U-Boot patch tracking system a new ticket [DNX#2006040142000624] was created: > Hello, Wolfgang! > > I found two bugs in common/cmd_nand.c when debugging nand flash, which > is from u-boot-1.1.4 and the same with git tree: > > 1. there are 3 places using "not exact" or "wrong" parameters in > strncmp() function. > > strncmp(cmdtail, ".oob", 2) ==> strncmp(cmdtail, ".oob", 4) > strncmp(cmdtail, ".jffs2", 2) ==> strncmp(cmdtail, ".jffs2", 6) > strncmp(cmdtail, ".jffs2s", 2) ==> strncmp(cmdtail, ".jffs2s", 7) > > 2. "nand read.jffs2" command will bypass "nand read.jffs2s" command > for the else-if branch. > > FYI, the attachment is a diff patch with "-purN" options. > > Best regards, > Dongyan Chai Your U-Boot support team