From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Thu, 25 Feb 2016 21:00:53 -0700 Subject: [U-Boot] [PATCH 6/9] Hang when no command line processing can be performed In-Reply-To: <1456459256-32643-1-git-send-email-sjg@chromium.org> References: <1456459256-32643-1-git-send-email-sjg@chromium.org> Message-ID: <1456459256-32643-7-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Normally board_run_command() will handle command processed. But if for some reason it returns then we should hang to avoid further processing. Signed-off-by: Simon Glass --- common/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/main.c b/common/main.c index 1a2ef39..a9f7f71 100644 --- a/common/main.c +++ b/common/main.c @@ -72,4 +72,5 @@ void main_loop(void) autoboot_command(s); cli_loop(); + hang(); } -- 2.7.0.rc3.207.g0ac5344