瀏覽代碼

Panic when no command line processing can be performed

Normally board_run_command() will handle command processed. But if for some
reason it returns then we should panic to avoid further processing.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Simon Glass 9 年之前
父節點
當前提交
045e6f0d4f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      common/main.c

+ 1 - 0
common/main.c

@@ -72,4 +72,5 @@ void main_loop(void)
 	autoboot_command(s);
 
 	cli_loop();
+	panic("No CLI available");
 }