From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geiger Ho Date: Mon, 18 May 2009 20:00:43 +0800 Subject: [U-Boot] [PATCH] fix accidental erase of OneNand whole chip Message-ID: <4A114DEB.1020508@fmp.fujitsu.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This patch fixes the accidental erase of OneNand whole chip when issuing command "onenand erase". Signed-off-by: Geiger Ho --- u-boot-2009.03/common/cmd_onenand.c 2009-03-22 05:04:41.000000000 +0800 +++ u-boot-2009.03-dev/common/cmd_onenand.c 2009-05-18 17:57:27.000000000 +0800 @@ -367,6 +367,8 @@ int do_onenand(cmd_tbl_t * cmdtp, int fl return 0; } + goto usage; + default: /* At least 4 args */