Skip to contentSkip to conversation

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

PATCH New Sebastien Dugue 1 participant 1 message Nov 27, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

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

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().

Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
---
 arch/powerpc/kernel/ibmebus.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/powerpc/kernel/ibmebus.c +1 -0
index 64299d2..7c65377 100644
@@ -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);
 
Signature · 1 line
1.6.0.1.308.gede4c