KVM: cleanup the failure path of KVM_CREATE_IRQCHIP ioctrl
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 9 Feb 2010 02:33:03 +0000 (10:33 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:10 +0000 (12:36 -0300)
If we fail to init ioapic device or the fail to setup the default irq
routing, the device register by kvm_create_pic() and kvm_ioapic_init()
remain unregister. This patch fixed to do this.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found