powerpc/ibmebus: Get rid of the IRQ mapping in ibmebus_free_irq()

Submitted by Sebastien Dugue on Nov. 27, 2008, 11:19 a.m.


Message ID 20081127121918.2cfa881e@bull.net
State Accepted, archived
Commit 6358d6cb328a772eb6f02c870da61709d539480f
Delegated to: Paul Mackerras
Headers show

Commit Message

Sebastien Dugue Nov. 27, 2008, 11:19 a.m.
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(-)

Patch hide | download patch | download mbox

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);