mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-10 18:32:43 +08:00
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.
This commit is contained in:
@@ -657,6 +657,7 @@ static inline Thread_Control *_Scheduler_SMP_Enqueue_ordered(
|
||||
);
|
||||
} else {
|
||||
( *insert_ready )( context, node );
|
||||
needs_help = NULL;
|
||||
}
|
||||
|
||||
return needs_help;
|
||||
|
||||
Reference in New Issue
Block a user