[rtems commit] score: Close barrier object before flush
Sebastian Huber
sebh at rtems.org
Thu Apr 21 05:33:24 UTC 2016
Module: rtems
Branch: master
Commit: 928d455d53c1f483ae14226d139440a879209caf
Changeset: http://git.rtems.org/rtems/commit/?id=928d455d53c1f483ae14226d139440a879209caf
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sun Apr 17 15:57:19 2016 +0200
score: Close barrier object before flush
This prevents use of the object after the flush on uni-processor
configurations.
---
cpukit/rtems/src/barrierdelete.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/rtems/src/barrierdelete.c b/cpukit/rtems/src/barrierdelete.c
index 7dab0c0..5d87e63 100644
--- a/cpukit/rtems/src/barrierdelete.c
+++ b/cpukit/rtems/src/barrierdelete.c
@@ -33,8 +33,8 @@ rtems_status_code rtems_barrier_delete(
switch ( location ) {
case OBJECTS_LOCAL:
- _CORE_barrier_Flush( &the_barrier->Barrier, NULL, 0 );
_Objects_Close( &_Barrier_Information, &the_barrier->Object );
+ _CORE_barrier_Flush( &the_barrier->Barrier, NULL, 0 );
_Objects_Put( &the_barrier->Object );
_Barrier_Free( the_barrier );
_Objects_Allocator_unlock();
More information about the vc
mailing list