[rtems commit] rtems: Fix partitions with RTEMS_MULIPROCESSING
Sebastian Huber
sebh at rtems.org
Tue Aug 31 11:21:07 UTC 2021
Module: rtems
Branch: master
Commit: a8235fe7282d1124bc1caa56adde31e54953ccc0
Changeset: http://git.rtems.org/rtems/commit/?id=a8235fe7282d1124bc1caa56adde31e54953ccc0
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Aug 31 13:11:23 2021 +0200
rtems: Fix partitions with RTEMS_MULIPROCESSING
Replace call to removed _Partition_Free() with a call to _Objects_Free().
---
cpukit/rtems/src/partcreate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c
index 6124974..002bc0c 100644
--- a/cpukit/rtems/src/partcreate.c
+++ b/cpukit/rtems/src/partcreate.c
@@ -128,7 +128,7 @@ rtems_status_code rtems_partition_create(
if ( _Attributes_Is_global( attribute_set ) &&
!( _Objects_MP_Allocate_and_open( &_Partition_Information, name,
the_partition->Object.id, false ) ) ) {
- _Partition_Free( the_partition );
+ _Objects_Free( &_Partition_Information, &the_partition->Object );
_Objects_Allocator_unlock();
return RTEMS_TOO_MANY;
}
More information about the vc
mailing list