Commit ea2385a3 authored by Jan Kiszka's avatar Jan Kiszka

dovetail: intr: Clear affinity_hint before freeing the IRQ

We are setting it on xnintr_attach(), and Linux seems to dislike when it
is non-NULL on free_irq().

        /* make sure affinity_hint is cleaned up */
        if (WARN_ON_ONCE(desc->affinity_hint))
                desc->affinity_hint = NULL;
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent 5b7ccd13
......@@ -103,6 +103,7 @@ EXPORT_SYMBOL_GPL(xnintr_attach);
void xnintr_detach(struct xnintr *intr)
irq_set_affinity_hint(intr->irq, NULL);
free_irq(intr->irq, intr);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment