spapr_pci: Fix interrupt leak in rtas_ibm_change_msi() error path
commit925969c3e28692b04ad4075022f985702bf62419
authorGreg Kurz <groug@kaod.org>
Thu, 7 Feb 2019 17:28:37 +0000 (7 18:28 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sun, 17 Feb 2019 10:54:02 +0000 (17 21:54 +1100)
treed476881de3eaa848a5e02c528504d45666162ed2
parent27a3ea7eff2af5d8049d911802be4b13145491fc
spapr_pci: Fix interrupt leak in rtas_ibm_change_msi() error path

Now that IRQ allocation has been split in two (first allocate IRQ numbers,
then claim them), if the claiming fails, we must release the IRQs.

Fixes: 4fe75a8ccd80 "spapr: split the IRQ allocation sequence"
Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_pci.c