Corrected by adding check for NULL address passed into get_status

directive.
This commit is contained in:
Joel Sherrill
1997-04-25 18:13:49 +00:00
parent f8f5106965
commit e8cdda4f11
2 changed files with 6 additions and 0 deletions

View File

@@ -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: