lkml.org 
[lkml]   [2006]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] warn if free_irq() is called from IRQ context
warn if free_irq() is called in IRQ context - free_irq() can execute
/proc VFS work, which must not be done in IRQ context.

Signed-off-by: Ingo Molnar <mingo@elte.hu>

----

kernel/irq/manage.c | 1 +
1 files changed, 1 insertion(+)

Index: linux/kernel/irq/manage.c
===================================================================
--- linux.orig/kernel/irq/manage.c
+++ linux/kernel/irq/manage.c
@@ -263,6 +263,7 @@ void free_irq(unsigned int irq, void *de
unsigned long flags;
irqreturn_t (*handler)(int, void *, struct pt_regs *) = NULL;

+ WARN_ON(in_interrupt());
if (irq >= NR_IRQS)
return;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-01-26 17:35    [W:0.027 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site