summaryrefslogtreecommitdiff
path: root/nuttx/sched/task/task_init.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-03 14:58:24 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-03 14:58:24 -0600
commitc6e48b65d0729bc4fffbf57dac4fb8c97a35fd63 (patch)
tree8704f2481d566dd90cc40d89e8753381d4589521 /nuttx/sched/task/task_init.c
parentffa0635358e2080f6608ec41e172e4ba0873f91a (diff)
downloadpx4-nuttx-c6e48b65d0729bc4fffbf57dac4fb8c97a35fd63.tar.gz
px4-nuttx-c6e48b65d0729bc4fffbf57dac4fb8c97a35fd63.tar.bz2
px4-nuttx-c6e48b65d0729bc4fffbf57dac4fb8c97a35fd63.zip
Fix more places where the user-mode allocator is used to allocate kernel thread resources -- before the user-mode allocator even exists
Diffstat (limited to 'nuttx/sched/task/task_init.c')
-rw-r--r--nuttx/sched/task/task_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/sched/task/task_init.c b/nuttx/sched/task/task_init.c
index 6ad31e7f2..a4cf9fcfa 100644
--- a/nuttx/sched/task/task_init.c
+++ b/nuttx/sched/task/task_init.c
@@ -1,7 +1,7 @@
/****************************************************************************
* sched/task/task_init.c
*
- * Copyright (C) 2007, 2009, 2013 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2009, 2013-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -130,7 +130,7 @@ int task_init(FAR struct tcb_s *tcb, const char *name, int priority,
/* Create a new task group */
#ifdef HAVE_TASK_GROUP
- ret = group_allocate(ttcb);
+ ret = group_allocate(ttcb, tcb->flags);
if (ret < 0)
{
errcode = -ret;