[rtems commit] score: _User_extensions_Remove_set()

Sebastian Huber sebh at rtems.org
Thu Mar 31 11:57:18 UTC 2016


Module:    rtems
Branch:    master
Commit:    c01401c48128218189c0d50743c47679bcad7e0c
Changeset: http://git.rtems.org/rtems/commit/?id=c01401c48128218189c0d50743c47679bcad7e0c

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Mar 30 06:56:07 2016 +0200

score: _User_extensions_Remove_set()

Use unprotected chain operation in _User_extensions_Remove_set() since
the caller must own the object allocator lock.

Update #2555.

---

 cpukit/score/src/userextremoveset.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/cpukit/score/src/userextremoveset.c b/cpukit/score/src/userextremoveset.c
index a151005..5b3fdd1 100644
--- a/cpukit/score/src/userextremoveset.c
+++ b/cpukit/score/src/userextremoveset.c
@@ -20,13 +20,16 @@
 #endif
 
 #include <rtems/score/userextimpl.h>
+#include <rtems/score/objectimpl.h>
 #include <rtems/score/percpu.h>
 
 void _User_extensions_Remove_set (
   User_extensions_Control  *the_extension
 )
 {
-  _Chain_Extract( &the_extension->Node );
+  _Assert( _Objects_Allocator_is_owner() );
+
+  _Chain_Extract_unprotected( &the_extension->Node );
 
   /*
    * If a switch handler is present, remove it.



More information about the vc mailing list