summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/regiongetinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/regiongetinfo.c')
-rw-r--r--cpukit/rtems/src/regiongetinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/rtems/src/regiongetinfo.c b/cpukit/rtems/src/regiongetinfo.c
index 2f7f21b72a..f2592dc9b4 100644
--- a/cpukit/rtems/src/regiongetinfo.c
+++ b/cpukit/rtems/src/regiongetinfo.c
@@ -62,7 +62,8 @@ rtems_status_code rtems_region_get_information(
case OBJECTS_LOCAL:
- if ( _Heap_Get_information( &the_region->Memory, the_info ) ) {
+ if ( _Heap_Get_information( &the_region->Memory, the_info ) ==
+ HEAP_GET_INFORMATION_SUCCESSFUL ) {
_RTEMS_Unlock_allocator();
return RTEMS_SUCCESSFUL;
}