summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-11 16:00:16 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-11 16:07:40 +0200
commit35c8efc9501b5f6b1a4dfeaa4b1aa6a1d6dbf08e (patch)
treec8a9338c1f6881b25b3de63adf37f5a881906e9e
parenti386/pc386: Clean out removed functions. (diff)
downloadrtems-35c8efc9501b5f6b1a4dfeaa4b1aa6a1d6dbf08e.tar.bz2
score: Avoid use of uninitialized variable
Properly set the needs_help to NULL in _Scheduler_SMP_Enqueue_ordered() in case the thread is inserted into the ready set.
-rw-r--r--cpukit/score/include/rtems/score/schedulersmpimpl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/schedulersmpimpl.h b/cpukit/score/include/rtems/score/schedulersmpimpl.h
index a395f2c0ba..c3a1e02c00 100644
--- a/cpukit/score/include/rtems/score/schedulersmpimpl.h
+++ b/cpukit/score/include/rtems/score/schedulersmpimpl.h
@@ -657,6 +657,7 @@ static inline Thread_Control *_Scheduler_SMP_Enqueue_ordered(
);
} else {
( *insert_ready )( context, node );
+ needs_help = NULL;
}
return needs_help;