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: firefly_0821_release~37081 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cd7b24bb1891a10ee25168a912ff2304a9571d23;p=firefly-linux-kernel-4.4.55.git [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 6edfcef291e8..ac766ad573e8 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;