From 35c8efc9501b5f6b1a4dfeaa4b1aa6a1d6dbf08e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 11 May 2016 16:00:16 +0200 Subject: 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. --- cpukit/score/include/rtems/score/schedulersmpimpl.h | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3