kvm-all: kvm_irqchip_create is not expected to fail
commit8db4936bb648e15173d687bc162be14fd0d4260c
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Jun 2015 16:30:15 +0000 (18 18:30 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Jul 2015 15:59:44 +0000 (6 17:59 +0200)
tree6426acb5d957c64eec577fbb37be5e0fc27e4449
parent38bfe69180f99d05611a14bab4bb72c95e755b58
kvm-all: kvm_irqchip_create is not expected to fail

KVM_CREATE_IRQCHIP should never fail, and so should its userspace
wrapper kvm_irqchip_create.  The function does not do anything
if the irqchip capability is not available, as is the case for PPC.

With this patch, kvm_arch_init can allocate memory and it will not
be leaked.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
kvm-all.c