diff options
| author | Michal Simek <[email protected]> | 2026-04-02 17:36:58 +0200 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2026-04-17 08:02:42 +0200 |
| commit | 583efb5040587f06bab5f5d3eb321186c3a39fe4 (patch) | |
| tree | 70565a3c72924415363e60deb40785cdd4dc1ce3 /common | |
| parent | 57eae396ec91729d5655c26456f8ac3bac439202 (diff) | |
event: Check return value from event_notify_null()
event_notify_null() returns int but its return value is not
checked in run_main_loop() and in fwu_mdata tests.
Add proper error checking to all unchecked call sites.
Signed-off-by: Michal Simek <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Acked-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'common')
| -rw-r--r-- | common/board_r.c | 6 |
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 (;;) |
