summaryrefslogtreecommitdiff
path: root/nuttx/sched/group_leave.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-11 20:26:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-11 20:26:55 +0000
commit569561d0b8bbf208837ed267a59b5c8152b278d7 (patch)
treea811a5b1a1418ff45417d02863d5fcc2ffaa8b25 /nuttx/sched/group_leave.c
parent3578c60ae17a31fef6486ba5c3a2f97b899fb243 (diff)
downloadpx4-nuttx-569561d0b8bbf208837ed267a59b5c8152b278d7.tar.gz
px4-nuttx-569561d0b8bbf208837ed267a59b5c8152b278d7.tar.bz2
px4-nuttx-569561d0b8bbf208837ed267a59b5c8152b278d7.zip
Reorganize some AT91SAM3U files; Add an NSH kernel build configuration to the WaveSahhare Open1788 board
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5732 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/group_leave.c')
-rw-r--r--nuttx/sched/group_leave.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/sched/group_leave.c b/nuttx/sched/group_leave.c
index c6a546928..5f3c684ca 100644
--- a/nuttx/sched/group_leave.c
+++ b/nuttx/sched/group_leave.c
@@ -181,7 +181,11 @@ static inline void group_release(FAR struct task_group_s *group)
#if CONFIG_NFILE_STREAMS > 0
/* Free resource held by the stream list */
+#if defined(CONFIG_NUTTX_KERNEL) && defined(CONFIG_MM_KERNEL_HEAP)
lib_releaselist(&group->tg_streamlist);
+#else
+ lib_releaselist(&group->tg_streamlist);
+#endif
#endif /* CONFIG_NFILE_STREAMS */
#endif /* CONFIG_NFILE_DESCRIPTORS */