Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  /* Then activate the task at the provided priority */

  ret = task_activate((FAR struct tcb_s *)tcb);
  if (ret < 0)
    {
/* nxtask_unit() will undo all of the operations of nxtask_init().
* It also has the side-effect of freeing the TCB which it assumes
* was allocated with one of the kmm_malloc()functions.
*/
nxtask_uninit(tcb); custom_free(stack);
return ret;
}

return OK;

...