Skip to content
Snippets Groups Projects
Commit 48da5aa4 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

sched/pthread/: CRITICAL BUGFIX: Logic was wiping out the indication that of...

sched/pthread/: CRITICAL BUGFIX: Logic was wiping out the indication that of the type of a pthread.  Hence, it could be confused as a task.  Found because this was causing a crash when /proc/nnn/cmdline was printed.
parent 5821af1b
No related branches found
No related tags found
No related merge requests found
......@@ -11177,3 +11177,8 @@
procfs (2015-11-27).
* mtd/filemtd.c and smart.c: Add support for a /dev/smart loop device.
From Ken Petit (2015-11-28).
* sched/pthread/: CRITICAL BUGFIX: Logic was wiping out the indication
that of the type of a pthread. Hence, it could be confused as a
task. Found because this was causing a crash when /proc/nnn/cmdline
was printed (2015-11-29).
......@@ -430,7 +430,7 @@ int pthread_create(FAR pthread_t *thread, FAR const pthread_attr_t *attr,
/* Set the appropriate scheduling policy in the TCB */
ptcb->cmn.flags &= TCB_FLAG_POLICY_MASK;
ptcb->cmn.flags &= ~TCB_FLAG_POLICY_MASK;
switch (policy)
{
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment