If an interrupt source doesn't have an ithread, treat it as a stray

interrupt.  This can only happen if an unregistered interrupt source
triggers an interrupt.
This commit is contained in:
jhb 2003-11-14 21:00:32 +00:00
parent 134bbb89c8
commit 642972defa
2 changed files with 8 additions and 2 deletions

View File

@ -171,7 +171,10 @@ intr_execute_handlers(struct intsrc *isrc, struct intrframe *iframe)
atomic_add_int(&cnt.v_intr, 1);
it = isrc->is_ithread;
ih = TAILQ_FIRST(&it->it_handlers);
if (it == NULL)
ih = NULL;
else
ih = TAILQ_FIRST(&it->it_handlers);
/*
* XXX: We assume that IRQ 0 is only used for the ISA timer

View File

@ -171,7 +171,10 @@ intr_execute_handlers(struct intsrc *isrc, struct intrframe *iframe)
atomic_add_int(&cnt.v_intr, 1);
it = isrc->is_ithread;
ih = TAILQ_FIRST(&it->it_handlers);
if (it == NULL)
ih = NULL;
else
ih = TAILQ_FIRST(&it->it_handlers);
/*
* XXX: We assume that IRQ 0 is only used for the ISA timer