patacongo opened a new pull request #1140: URL: https://github.com/apache/incubator-nuttx/pull/1140
## Summary 1. sched/task/task_init.c: Add nxtask_uninit() Add trivial function nxtask_uninit(). This function will undo all operations on a TCB performed by task_init() and release the TCB by calling kmm_free(). This is intended primarily to support error recovery operations after a successful call to task_init() such was when a subsequent call to task_activate fails. That error recovery is trivial but not obvious. This helper function should eliminate confusion about what to do to recover after calling nxtask_init() 2. sched/task/task_create.c: Correct logic in error handling After nxtask_setup_arguments() is called, the task must be removed from the active task list in order to properly recover from any error condition. ## Impact None anticipated ## Testing sim:nsh ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
