diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-06-10 07:44:45 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-06-10 07:50:00 +0200 |
commit | 6641cc87b87e0abf79138bbe0fbd303e04b547bf (patch) | |
tree | f936a51c4619aafdbd31a97ae8927d0826510941 /cpukit/posix/src/mutexlocksupp.c | |
parent | sysconf: Remove sysconf(515) (diff) | |
download | rtems-6641cc87b87e0abf79138bbe0fbd303e04b547bf.tar.bz2 |
score: Fix initialization of thread queue context
Set Thread_queue_Context::timeout_absolute in
_Thread_queue_Context_set_timeout_argument() to avoid using it uninitialized.
The bug was introduced by a89ecaa1a94d49ddae7753d6b83923e9d2a00486.
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/mutexlocksupp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/mutexlocksupp.c b/cpukit/posix/src/mutexlocksupp.c index e5bd1784ea..983ee578ad 100644 --- a/cpukit/posix/src/mutexlocksupp.c +++ b/cpukit/posix/src/mutexlocksupp.c @@ -69,7 +69,7 @@ int _POSIX_Mutex_Lock_support( executing = _POSIX_Mutex_Acquire( the_mutex, &queue_context ); _Thread_queue_Context_set_enqueue_callout( &queue_context, enqueue_callout); - _Thread_queue_Context_set_timeout_argument( &queue_context, abstime ); + _Thread_queue_Context_set_timeout_argument( &queue_context, abstime, true ); switch ( _POSIX_Mutex_Get_protocol( flags ) ) { case POSIX_MUTEX_PRIORITY_CEILING: |