diff --git a/sched/task/task_spawnparms.c b/sched/task/task_spawnparms.c index 2813713534..c3198def2e 100644 --- a/sched/task/task_spawnparms.c +++ b/sched/task/task_spawnparms.c @@ -274,7 +274,7 @@ int spawn_file_actions(FAR struct tcb_s *tcb, /* Execute each file action */ for (entry = (FAR struct spawn_general_file_action_s *)actions; - entry && ret == OK; + entry && ret >= 0; entry = entry->flink) { switch (entry->action)