anchao commented on code in PR #16154:
URL: https://github.com/apache/nuttx/pull/16154#discussion_r2033117652


##########
sched/task/task_fork.c:
##########
@@ -137,22 +137,22 @@ FAR struct task_tcb_s *nxtask_setup_fork(start_t retaddr)
 
   /* Allocate a TCB for the child task. */
 
-  child = kmm_zalloc(sizeof(struct task_tcb_s));
+  child = kmm_zalloc(sizeof(struct tcb_s) + sizeof(struct task_group_s));

Review Comment:
   I think we could keep the struct task_tcb_s definition just reference on 
allocate phase



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to