binfmt_execmodule() calls to sched_releasttcb() was not updated to use the second, thread type parameter

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5779 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2013-03-23 19:06:40 +00:00
parent a1344d8a44
commit 82b86f9c4a
7 changed files with 17 additions and 10 deletions
+2 -2
View File
@@ -245,10 +245,10 @@ int exec_module(FAR const struct binary_s *binp)
errout_with_stack:
#ifndef CONFIG_CUSTOM_STACK
tcb->cmn.stack_alloc_ptr = NULL;
sched_releasetcb(&tcb->cmn);
sched_releasetcb(&tcb->cmn, TCB_FLAG_TTYPE_TASK);
kufree(stack);
#else
sched_releasetcb(&tcb->cmn);
sched_releasetcb(&tcb->cmn, TCB_FLAG_TTYPE_TASK);
#endif
goto errout;