From e8cdda4f11b99d6249f00344a397df721ae3f142 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 25 Apr 1997 18:13:49 +0000 Subject: Corrected by adding check for NULL address passed into get_status directive. --- cpukit/rtems/src/ratemon.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpukit') 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: -- cgit v1.2.3