]> rtime.felk.cvut.cz Git - jailhouse.git/commit
x86: Properly roll back failing IOAPIC cell initialization
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 7 Jan 2016 07:54:17 +0000 (08:54 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 8 Jan 2016 18:34:38 +0000 (19:34 +0100)
commit89107a91841d1799bf3328b227c8fc069e0e185b
tree8323818757014b5a32cde77b4fd0d4ac772c8dfe
parent7c5ef4248cd6cc96703cd97621a5a6886129be67
x86: Properly roll back failing IOAPIC cell initialization

We have to release already allocated resources if ioapic_get_or_add_phys
fails. At least the arch.ioapics array should be freed again, but
possibly also previously claimed root cell IOAPIC pins.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/x86/ioapic.c