diff options
Diffstat (limited to 'nuttx/sched/mq_descreate.c')
-rw-r--r-- | nuttx/sched/mq_descreate.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/sched/mq_descreate.c b/nuttx/sched/mq_descreate.c index 14937888c..3fe696fc5 100644 --- a/nuttx/sched/mq_descreate.c +++ b/nuttx/sched/mq_descreate.c @@ -1,7 +1,7 @@ /**************************************************************************** * sched/mq_descreate.c * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -137,8 +137,11 @@ static mqd_t mq_desalloc(void) mqd_t mq_descreate(FAR _TCB* mtcb, FAR msgq_t* msgq, int oflags) { + FAR struct task_group_s *group = mtcb->group; mqd_t mqdes; + DEBUGASSERT(group); + /* Create a message queue descriptor for the TCB */ mqdes = mq_desalloc(); @@ -152,7 +155,7 @@ mqd_t mq_descreate(FAR _TCB* mtcb, FAR msgq_t* msgq, int oflags) /* And add it to the specified tasks's TCB */ - sq_addlast((FAR sq_entry_t*)mqdes, &mtcb->msgdesq); + sq_addlast((FAR sq_entry_t*)mqdes, &group->tg_msgdesq); } return mqdes; |