summaryrefslogtreecommitdiffstats
path: root/c/src/exec/rtems
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-10-21 18:37:58 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-10-21 18:37:58 +0000
commitcdfd74a538d9849593b1d30607f0a8a8c94a44b5 (patch)
tree6cd6a2edb8bcf3918f5ff9aa109fa0337debba77 /c/src/exec/rtems
parentMoved rtems directory up one directory in the install point. It was (diff)
downloadrtems-cdfd74a538d9849593b1d30607f0a8a8c94a44b5.tar.bz2
Added check that return argument pointer for old_isr_handler was valid.
Diffstat (limited to 'c/src/exec/rtems')
-rw-r--r--c/src/exec/rtems/src/intr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/exec/rtems/src/intr.c b/c/src/exec/rtems/src/intr.c
index 754a9d298f..d446515c72 100644
--- a/c/src/exec/rtems/src/intr.c
+++ b/c/src/exec/rtems/src/intr.c
@@ -58,6 +58,9 @@ rtems_status_code rtems_interrupt_catch(
if ( !_ISR_Is_valid_user_handler( (void *) new_isr_handler ) )
return RTEMS_INVALID_ADDRESS;
+ if ( !_ISR_Is_valid_user_handler( (void *) old_isr_handler ) )
+ return RTEMS_INVALID_ADDRESS;
+
_ISR_Install_vector(
vector, (proc_ptr)new_isr_handler, (proc_ptr *)old_isr_handler );