diff options
Diffstat (limited to 'cpukit/rtems/src/ratemon.c')
-rw-r--r-- | cpukit/rtems/src/ratemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/rtems/src/ratemon.c b/cpukit/rtems/src/ratemon.c index 922e8e7048..2832e652e1 100644 --- a/cpukit/rtems/src/ratemon.c +++ b/cpukit/rtems/src/ratemon.c @@ -238,6 +238,9 @@ rtems_status_code rtems_rate_monotonic_get_status( Objects_Locations location; Rate_monotonic_Control *the_period; + if ( status == NULL ) + return RTEMS_INVALID_ADDRESS; + the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_ERROR: |