summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 8cf0e14679c..5d37345ca09 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -569,11 +569,15 @@ static int dm_announce(void)
static int run_main_loop(void)
{
+ int ret;
+
#ifdef CONFIG_SANDBOX
sandbox_main_loop_init();
#endif
- event_notify_null(EVT_MAIN_LOOP);
+ ret = event_notify_null(EVT_MAIN_LOOP);
+ if (ret)
+ return ret;
/* main_loop() can return to retry autoboot, if so just run it again */
for (;;)