From: Ingo Molnar Date: Sun, 26 Mar 2006 09:36:54 +0000 (-0800) Subject: [PATCH] warn if free_irq() is called from IRQ context X-Git-Tag: v2.6.17-rc1~658 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd7b24bb1891a10ee25168a912ff2304a9571d23;p=linux-2.6 [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 6edfcef291..ac766ad573 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -271,6 +271,7 @@ void free_irq(unsigned int irq, void *dev_id) struct irqaction **p; unsigned long flags; + WARN_ON(in_interrupt()); if (irq >= NR_IRQS) return;