mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] warn if free_irq() is called from IRQ context
@ 2006-01-26 16:33 Ingo Molnar
  0 siblings, 0 replies; only message in thread
From: Ingo Molnar @ 2006-01-26 16:33 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

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;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-26 16:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-26 16:33 [patch] warn if free_irq() is called from IRQ context Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®