Changeset cdfd74a5 in rtems


Ignore:
Timestamp:
Oct 21, 1997, 6:37:58 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a7e2729
Parents:
d7072e5
Message:

Added check that return argument pointer for old_isr_handler was valid.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/rtems/src/intr.c

    rd7072e5 rcdfd74a5  
    5959    return RTEMS_INVALID_ADDRESS;
    6060
     61  if ( !_ISR_Is_valid_user_handler( (void *) old_isr_handler ) )
     62    return RTEMS_INVALID_ADDRESS;
     63
    6164  _ISR_Install_vector(
    6265    vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler );
  • cpukit/rtems/src/intr.c

    rd7072e5 rcdfd74a5  
    5959    return RTEMS_INVALID_ADDRESS;
    6060
     61  if ( !_ISR_Is_valid_user_handler( (void *) old_isr_handler ) )
     62    return RTEMS_INVALID_ADDRESS;
     63
    6164  _ISR_Install_vector(
    6265    vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler );
Note: See TracChangeset for help on using the changeset viewer.