xen: Remove unnecessary BUG_ON from __unbind_from_irq()
authorBoris Ostrovsky <[email protected]>
Thu, 21 Jun 2018 17:29:44 +0000 (13:29 -0400)
committerJuergen Gross <[email protected]>
Fri, 22 Jun 2018 06:32:52 +0000 (08:32 +0200)
commiteef04c7b3786ff0c9cb1019278b6c6c2ea0ad4ff
tree35b7d6abe199f0d62ed0c77b16d6b055a348558a
parentc51b3c639e01f20559531eef3c5919feae23c55a
xen: Remove unnecessary BUG_ON from __unbind_from_irq()

Commit 910f8befdf5b ("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: Ben Hutchings <[email protected]>
Signed-off-by: Boris Ostrovsky <[email protected]>
Cc: [email protected]
Reviewed-by: Juergen Gross <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
drivers/xen/events/events_base.c