summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/regionextend.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/regionextend.c')
-rw-r--r--cpukit/rtems/src/regionextend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/rtems/src/regionextend.c b/cpukit/rtems/src/regionextend.c
index 9e5436de8d..956ef96513 100644
--- a/cpukit/rtems/src/regionextend.c
+++ b/cpukit/rtems/src/regionextend.c
@@ -51,6 +51,9 @@ rtems_status_code rtems_region_extend(
Heap_Extend_status heap_status;
rtems_status_code status;
+ if ( !starting_address )
+ return RTEMS_INVALID_ADDRESS;
+
status = RTEMS_SUCCESSFUL;
_RTEMS_Lock_allocator(); /* to prevent deletion */