diff options
-rw-r--r-- | c/src/exec/rtems/src/ratemon.c | 3 | ||||
-rw-r--r-- | cpukit/rtems/src/ratemon.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/c/src/exec/rtems/src/ratemon.c b/c/src/exec/rtems/src/ratemon.c index 922e8e7048..2832e652e1 100644 --- a/c/src/exec/rtems/src/ratemon.c +++ b/c/src/exec/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: 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: |