Modified to return an error when a bogus return address for the

old_priority parameter is provided.
This commit is contained in:
Joel Sherrill
1999-06-09 16:46:13 +00:00
parent 8dba3733fb
commit 0860426d39
2 changed files with 6 additions and 0 deletions

View File

@@ -61,6 +61,9 @@ rtems_status_code rtems_task_set_priority(
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
switch ( location ) {