From aa90da2bc829cce9d2fe7b4e2ffb654185c96879 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 23 Jul 2015 11:25:25 -0600 Subject: [PATCH] pthread_create: Fix an (unlikely) error in fallback value in the event of a failure (which should never occur) --- ChangeLog | 2 ++ sched/pthread/pthread_create.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f703c103658..2afd70cda02 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 5ce91934c5e..84a8e7585e9 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