Commit d08dfdea authored by Boris Ostrovsky's avatar Boris Ostrovsky Committed by Greg Kroah-Hartman

xen: Remove unnecessary BUG_ON from __unbind_from_irq()

commit eef04c7b upstream.

Commit 910f8bef ("xen/pirq: fix error path cleanup when binding
MSIs") fixed a couple of errors in error cleanup path of
xen_bind_pirq_msi_to_irq(). This cleanup allowed a call to
__unbind_from_irq() with an unbound irq, which would result in
triggering the BUG_ON there.

Since there is really no reason for the BUG_ON (xen_free_irq() can
operate on unbound irqs) we can remove it.
Reported-by: default avatarBen Hutchings <>
Signed-off-by: default avatarBoris Ostrovsky <>
Reviewed-by: default avatarJuergen Gross <>
Signed-off-by: default avatarJuergen Gross <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent fff76ff5
......@@ -628,8 +628,6 @@ static void __unbind_from_irq(unsigned int irq)
BUG_ON(info_for_irq(irq)->type == IRQT_UNBOUND);
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