[rtems commit] score: Always check queue in _Thread_Wait_cancel()
Sebastian Huber
sebh at rtems.org
Wed Oct 6 08:38:36 UTC 2021
Module: rtems
Branch: master
Commit: 3bb97a30b17b6c138dead3e3a6b329c3b301cdb3
Changeset: http://git.rtems.org/rtems/commit/?id=3bb97a30b17b6c138dead3e3a6b329c3b301cdb3
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Oct 6 10:37:53 2021 +0200
score: Always check queue in _Thread_Wait_cancel()
Commit 18c8a270c296addff87f96b8c248f27eba31c24f removed
_Thread_queue_Do_nothing_extract() so we have to check for a non-NULL
queue in all configurations.
---
cpukit/include/rtems/score/threadimpl.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h
index f25e347..ace42d8 100644
--- a/cpukit/include/rtems/score/threadimpl.h
+++ b/cpukit/include/rtems/score/threadimpl.h
@@ -2195,8 +2195,8 @@ RTEMS_INLINE_ROUTINE void _Thread_Wait_cancel(
queue = the_thread->Wait.queue;
-#if defined(RTEMS_SMP)
if ( queue != NULL ) {
+#if defined(RTEMS_SMP)
_Assert( queue_context->Lock_context.Wait.queue == queue );
#endif
@@ -2210,8 +2210,8 @@ RTEMS_INLINE_ROUTINE void _Thread_Wait_cancel(
#if defined(RTEMS_SMP)
_Assert( queue_context->Lock_context.Wait.queue == NULL );
queue_context->Lock_context.Wait.queue = queue;
- }
#endif
+ }
}
/**
More information about the vc
mailing list