[rtems commit] score: Avoid use of uninitialized variable
Sebastian Huber
sebh at rtems.org
Wed May 11 14:07:47 UTC 2016
Module: rtems
Branch: master
Commit: 35c8efc9501b5f6b1a4dfeaa4b1aa6a1d6dbf08e
Changeset: http://git.rtems.org/rtems/commit/?id=35c8efc9501b5f6b1a4dfeaa4b1aa6a1d6dbf08e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed May 11 16:00:16 2016 +0200
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 a395f2c..c3a1e02 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;
More information about the vc
mailing list