diff --git a/ChangeLog b/ChangeLog index f703c10365..2afd70cda0 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10754,3 +10754,5 @@ * include/nuttx/sched.h, sched/, and fs/procfs: Increase the size of the scheduling policy field from 1 to 2 bits to allow additional, planned scheduling policies (2015-07-23). + * pthread_create: Fix an (unlikely) error in fallback value in the + event of a failure (which should never occur) (2015-07-23). diff --git a/sched/pthread/pthread_create.c b/sched/pthread/pthread_create.c index 5ce91934c5..84a8e7585e 100644 --- a/sched/pthread/pthread_create.c +++ b/sched/pthread/pthread_create.c @@ -324,7 +324,7 @@ int pthread_create(FAR pthread_t *thread, FAR const pthread_attr_t *attr, } else { - priority = SCHED_FIFO; + priority = PTHREAD_DEFAULT_PRIORITY; } #if CONFIG_RR_INTERVAL > 0