forked from Imagelibrary/rtems
rtems: Fix partitions with RTEMS_MULIPROCESSING
Replace call to removed _Partition_Free() with a call to _Objects_Free().
This commit is contained in:
@@ -128,7 +128,7 @@ rtems_status_code rtems_partition_create(
|
|||||||
if ( _Attributes_Is_global( attribute_set ) &&
|
if ( _Attributes_Is_global( attribute_set ) &&
|
||||||
!( _Objects_MP_Allocate_and_open( &_Partition_Information, name,
|
!( _Objects_MP_Allocate_and_open( &_Partition_Information, name,
|
||||||
the_partition->Object.id, false ) ) ) {
|
the_partition->Object.id, false ) ) ) {
|
||||||
_Partition_Free( the_partition );
|
_Objects_Free( &_Partition_Information, &the_partition->Object );
|
||||||
_Objects_Allocator_unlock();
|
_Objects_Allocator_unlock();
|
||||||
return RTEMS_TOO_MANY;
|
return RTEMS_TOO_MANY;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user