* [PATCH] powerpc/ibmebus: Get rid of the IRQ mapping in ibmebus_free_irq()
@ 2008-11-27 11:19 Sebastien Dugue
0 siblings, 0 replies; only message in thread
From: Sebastien Dugue @ 2008-11-27 11:19 UTC (permalink / raw)
To: linux-ppc; +Cc: Paul Mackerras, Jean Pierre Dion, Gilles Carry, Will Schmidt
ibmebus_free_irq() frees the IRQ but does not remove its mapping which
results in stale entries in the map.
Fix this by adding a call to irq_dispose_mapping() in ibmebus_free_irq().
Signed-off-by: Sebastien Dugue <sebastien.dugue@bull.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
---
arch/powerpc/kernel/ibmebus.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/kernel/ibmebus.c b/arch/powerpc/kernel/ibmebus.c
index 64299d2..7c65377 100644
--- a/arch/powerpc/kernel/ibmebus.c
+++ b/arch/powerpc/kernel/ibmebus.c
@@ -231,6 +231,7 @@ void ibmebus_free_irq(u32 ist, void *dev_id)
unsigned int irq = irq_find_mapping(NULL, ist);
free_irq(irq, dev_id);
+ irq_dispose_mapping(irq);
}
EXPORT_SYMBOL(ibmebus_free_irq);
--
1.6.0.1.308.gede4c
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-27 11:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-27 11:19 [PATCH] powerpc/ibmebus: Get rid of the IRQ mapping in ibmebus_free_irq() Sebastien Dugue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).