Commit cd7b24bb authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds

[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: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6dc659d8
...@@ -271,6 +271,7 @@ void free_irq(unsigned int irq, void *dev_id) ...@@ -271,6 +271,7 @@ void free_irq(unsigned int irq, void *dev_id)
struct irqaction **p; struct irqaction **p;
unsigned long flags; unsigned long flags;
WARN_ON(in_interrupt());
if (irq >= NR_IRQS) if (irq >= NR_IRQS)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment