diff mbox

[08/11] xive: When an interrupt is freed, also clear its enabled map entry

Message ID 20170315095900.13962-8-benh@kernel.crashing.org
State Accepted
Headers show

Commit Message

Benjamin Herrenschmidt March 15, 2017, 9:58 a.m. UTC
Otherwise we try to disable an invalid IVE during xive_reset()

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 hw/xive.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/hw/xive.c b/hw/xive.c
index c9e07ca..dc5f279 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -4124,6 +4124,7 @@  static int64_t opal_xive_free_irq(uint32_t girq)
 		return OPAL_PARAMETER;
 	}
 	bitmap_clr_bit(*x->ipi_alloc_map, idx);
+	bitmap_clr_bit(*x->int_enabled_map, idx);
 	unlock(&x->lock);
 
 	return OPAL_SUCCESS;