summaryrefslogtreecommitdiff
path: root/nuttx/binfmt
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-23 19:06:40 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-23 19:06:40 +0000
commit4c3cc60932ac1b6ec0076ab89a80de55e0b69a4c (patch)
treea763c9e920604ef01d55cf2b30ae2a087516df33 /nuttx/binfmt
parenta8cb02138ce460fbd66d242d34dda71082062538 (diff)
downloadpx4-nuttx-4c3cc60932ac1b6ec0076ab89a80de55e0b69a4c.tar.gz
px4-nuttx-4c3cc60932ac1b6ec0076ab89a80de55e0b69a4c.tar.bz2
px4-nuttx-4c3cc60932ac1b6ec0076ab89a80de55e0b69a4c.zip
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
Diffstat (limited to 'nuttx/binfmt')
-rw-r--r--nuttx/binfmt/binfmt_execmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/binfmt/binfmt_execmodule.c b/nuttx/binfmt/binfmt_execmodule.c
index 651960267..c98490359 100644
--- a/nuttx/binfmt/binfmt_execmodule.c
+++ b/nuttx/binfmt/binfmt_execmodule.c
@@ -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;