forked from Imagelibrary/rtems
Corrected by adding check for NULL address passed into get_status
directive.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user