fix crash in irq_detach() when not using an ist
---
sys/kern/irq.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/sys/kern/irq.c b/sys/kern/irq.c
index b203da4..bf3b427 100755
--- a/sys/kern/irq.c
+++ b/sys/kern/irq.c
@@ -156,7 +156,8 @@ void irq_detach(int handle)
interrupt_mask(irq->vector);
irq_unlock();
irq_table[irq->vector] = NULL;
- __thread_terminate(irq->thread);
+ if (irq->thread)
+ __thread_terminate(irq->thread);
kmem_free(irq);
return;
}
--
1.5.0.3.GIT
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Prex-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/prex-devel