summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/timerfireafter.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/timerfireafter.c')
-rw-r--r--cpukit/rtems/src/timerfireafter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/rtems/src/timerfireafter.c b/cpukit/rtems/src/timerfireafter.c
index fa5366826c..7b4660c82b 100644
--- a/cpukit/rtems/src/timerfireafter.c
+++ b/cpukit/rtems/src/timerfireafter.c
@@ -51,6 +51,9 @@ rtems_status_code rtems_timer_fire_after(
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
+ if ( !routine )
+ return RTEMS_INVALID_ADDRESS;
+
the_timer = _Timer_Get( id, &location );
switch ( location ) {
case OBJECTS_REMOTE: /* should never return this */